Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function parse(array $formData): string
$xsl = $this->certificateXlsFileLoader->getXlsCertificateContent();

// additional font support
$xsl = str_replace(
'font-family="Helvetica, unifont"',
$xsl = preg_replace(
'/font-family="[^"]*"/',
'font-family="' . $this->settings->get('rpc_pdf_font', 'Helvetica, unifont') . '"',
$xsl
);
Expand Down
5 changes: 5 additions & 0 deletions components/ILIAS/WebServices/RPC/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ NumThreads = 2
RamBufferSize = 256
IndexMaxFileSizeMB = 500

[FOP]
FontDirectory = /var/www/files/fonts

[Client1]
ClientId = ACMECorp
NicId = 0
Expand All @@ -93,6 +96,8 @@ IliasIniPath = /var/www/html/ilias/ilias.ini.php
- RamBufferSize: The maximum amount of memory in MB before index data is written to the file system
- IndexMaxFileSize: The maximum file size of ILIAS files that can be included in the index.

- FontDirectory: An optional directory containing additional fonts besides "Helvetica (embedded)" and "unifont" for the FOP PDF renderer.

- ClientId: ClientId of ILIAS installation
- NicId: NicID of ILIAS installation
- IliasMajorVersion: the ILIAS major version the client is based on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ public void parseSettings(String path, boolean parseClientSettings) throws Confi
serverSettings.setMaxFileSizeMB(getConfig(ini, section, "IndexMaxFileSizeMB", false));
}
}
if (section.equals("FOP")) {
logger.debug("Parsing FOP settings");
if (sectionConfig.containsKey("FontDirectory")) {
logger.debug("FontDirectory {}", getConfig(ini, section, "FontDirectory", false));
try {
serverSettings.setFopFontDirectory(getConfig(ini, section, "FontDirectory", false));
} catch (ConfigurationException e) {
logger.warn("Ignoring invalid configuration option FOP FontDirectory: {}", e);
}
}
}

logger.debug("check section client");
if (section.startsWith("Client") && parseClientSettings) {
logger.debug("section client");
Expand Down
Loading
Loading