© PDF Tools AG – Premium PDF Technology
3-Heights™ PDF to Image Converter API, March 24, 2016 | 29/67
PDF_font_* is the name of the font in the PDF. This name can be found in one of the following ways:
Use any tool that can list fonts. Such as 3-Heights™ PDF Extract or 3-Heights™ PDF Optimizer. Ignore possible
preﬁxes of font subsets. A subset preﬁx consists of 6 characters followed by the plus sign. For example
“KHFOKE+MonotypeCorsiva”, in this case only use“MonotypeCorsiva” as font name in the mapping ﬁle.
Open the document with Adobe Acrobat, use the“MarkUp Text Tool”, mark the text of which you would like
to know the font name, right-click it, select “Properties...”
installed_font_* is the font family name of the installed font. To retrieve this name, ﬁnd the font in the Windows’
font directory and open it by double-clicking. The ﬁrst line in the property window displays the font family name
(this may vary depending on the operating system). The font family name does not include font styles; so an
example of a font family name is“Arial”, but not“Arial Italic”.
font_style is an optional style, that is added coma-separated after the font family name. The style is always one
word. Examples of font styles are “Italic”, “Bold”,“BoldItalic”. Omit the font style, if it is “Regular”or“Normal”.
Remove blanks from all font names, i.e. both the
5.8 How to Change the Colors - Receive a Darker Black
CMYK colors that are used in the PDF must ﬁrst be converted to RGB. There are basically two ways how to achieve
1. A CMYK color proﬁle is applied. The suggested default color proﬁle is the“U.S. Web Coated (SWOP) v2”. Using a
diﬀerent color proﬁle yields in an image output with diﬀerent colors. See
RGB and CMKY color proﬁles can be found on the Windows systems at following location:
2. The Neugebauer algorithm is applied for the color conversion using the function
and the path
to the text ﬁle holding custom coeﬃcients as argument.
Sample Visual Basic 6 code snippet:
Dim conv As New PDF2IMGOCXLib.Pdf2Img
' Set the color management engine
conv.SetCMSEngine App.Path & "\CmykToRgb.txt"
The default Neugebauer coeﬃcients convert CMYK black (0, 0, 0, 1) to an RGB black which is not pure black. The fol
lowing coeﬃcients will create a darker black. The changes are applied on line 5 (originally ~0.2, see SetCMSEngine).
To receive a darker black, the values for k need to be lowered even more.
0.996078, 0.996078, 0.996078 ; White
0.000000, 0.686275, 0.937255 ; C
0.925490, 0.149020, 0.560784 ; M
1.000000, 0.949020, 0.066667 ; Y