Providing missing fonts for PDF
If a PDF input file uses a font that is not embedded in the PDF itself, this may cause problems in OL Connect. Not only can the output look bad, it can also cause DataMapper's text extraction to produce incorrect data. These issues may be resolved by providing OL Connect with the missing fonts or replacement fonts. This feature is available from version 2023.1.
Note that OL Connect will not use system fonts when a font is missing, because systems are not guaranteed to have the same fonts. This has the added benefit that you will definitely notice it when the input requires external fonts.
Providing missing fonts
-
Copy the fonts to the folder C:\ProgramData\Objectif Lune\OL Connect\Resources\PDF\fonts on the system on which the OL Connect Server is located.
-
Create a file named Fontmap in the parent folder: C:\ProgramData\Objectif Lune\OL Connect\Resources\PDF
-
In the Fontmap file, map each of the missing fonts to the appropriate font file in the fonts subfolder. The syntax is:
font "font name" "font file"
(one font per line).Example:
font "GalanoGrotesque-Regular" "RENE_BIEDER-GALANO_GROTESQUE.OTF"
font "GalanoGrotesque-Bold" "RENE BIEDER - GALANO GROTESQUE BOLD.OTF"
font "GalanoGrotesque-Italic" "RENE BIEDER - GALANO GROTESQUE ITALIC.OTF"
Providing a substitute font
If you don't have the missing font, but you do have a font that is very similar - for example, the semi-bold italic version instead of the bold italic version - you can use this as a replacement.
-
Add the font you want to use as a substitute to your Fontmap file using the same procedure as for missing fonts.
Example:
font "GalanoGrotesque-SemiBoldItalic" "RENE BIEDER - GALANO GROTESQUE SEMIBOLD ITALIC.OTF" -
On the next line, link the missing font to the substitute font.
The syntax is:alias "font name" "substitute font name"
.Example:
alias "GalanoGrotesque-BoldItalic" "GalanoGrotesque-SemiBoldItalic"
Note: Even if fonts are likely very similar, it is advisable to check whether the result is acceptable and text is extracted correctly.