Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 443

Previous Page 442   Index   Next Page 444

Function Reference
Page 443 of 767
width and advance are calculated in text space.
Note that it is not always possible to translate a text to Unicode. The
translation will fail if a CID font depends on an external CMap file that is
not available. External CMaps should always be loaded with
SetCMapDir() before GetPageText() is executed the first time.
It is also possible that a PDF file contains an invalid encoding or
ToUnicode CMap. Because the encoding or ToUnicode CMap is only used
for Copy & Paste operations you cannot assume that the conversion to
Unicode is always possible.
KerningCount
The number of kerning records. RawKern and Kerning contain always the
same number of records.
TextWidth
The text width measured in text space. This is the width of the entire
kerning array incl. kerning space.
IFont
A pointer to the font object used to print the text. The most important
properties of the font can be returned with GetFont().
Embedded
If true, the font is embedded. This information is very important if the text
should be replaced. The function ReplacePageText() can be used if the font
is not embedded and if the member CIDFont is false. Otherwise, the
function ReplacePageTextEx() or WriteTextMatrixEx() must be used to
replace the text, see the examples on the following pages for further
information.
SpaceWidth
The space width can be used to determine whether a space character is
emulated at a given position. A default space width is set if the font does not
contain a space character. Note that many documents emulate spaces with
kerning space. Such documents contain usually no space character. It is
usually best to use the half space width to determine whether a space
character is emulated. This is especially important if a document uses
condensed fonts which contain no space character.
ConvColor
If true (default), all colors are converted to the destination color space
DestSpace. The default color space is DeviceRGB. This variable can be
changed after the structure has been initialized with InitStack(). If set to false,
colors of complex color spaces are still converted into the alternate color
space but the color space can then be changed arbitrary often. See also the
description of FillCS.
 

Previous topic: GetPageText

Next topic: Organization of content streams and pages