Xojo Conferences

DynaPDF Manual - Page 445

Previous Page 444   Index   Next Page 446

Function Reference
Page 445 of 770
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.
The number of kerning records. RawKern and Kerning contain always the
same number of records.
The text width measured in text space. This is the width of the entire
kerning array incl. kerning space.
A pointer to the font object used to print the text. The most important
properties of the font can be returned with GetFont().
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
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.
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: GetPageObject (Rendering Engine), GetPageOrientation (Rendering Engine), GetPageText

Next topic: External CMaps