53
© 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
prefixes of font subsets. A subset prefix 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 file.
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, find the font in the Windows’
font directory and open it by double-clicking. The first 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
PDF\_font
and the
installed\_font
.
Example:
[fonts]
Ryumin-Light=MSMincho
GothicBBB-Medium=MSGothic
[replace]
ArialIta=Arial,BoldItalic
5.8 How to Change the Colors - Receive a Darker Black
CMYK colors that are used in the PDF must first be converted to RGB. There are basically two ways how to achieve
this:
1. A CMYK color profile is applied. The suggested default color profile is the“U.S. Web Coated (SWOP) v2”. Using a
different color profile yields in an image output with different colors. See
SetCMYKProfile
,
SetsRGBPro-
file
.
RGB and CMKY color profiles can be found on the Windows systems at following location:
%System-
Root%\system32\spool\drivers\color
2. The Neugebauer algorithm is applied for the color conversion using the function
SetCMSEngine
and the path
to the text file holding custom coefficients 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 coefficients convert CMYK black (0, 0, 0, 1) to an RGB black which is not pure black. The fol
lowing coefficients 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