DynaPDF Manual - Page 510

Previous Page 509   Index   Next Page 511

Function Reference
Page 510 of 883
double
x;
// Unused -> always 0.0
double
y;
// Unused -> always 0.0
double
FontSize;
// Font size measured in text space!
double
CharSP;
// Current character spacing
double
WordSP;
// Current word spacing
double
HScale;
// Current horizontal scaling
double
TextRise;
// Always 0.0 -> already included in tm
double
Leading;
// Current leading
double
LineWidth;
// Current line width
TDrawMode
DrawMode;
// Text draw mode (see SetDrawMode())
TPDFColorSpace
FillCS;
// Color space of fill color
TPDFColorSpace
StrokeCS;
// Color space of stroke color
UI32
FillColor;
// Current fill color (text color)
UI32
StrokeColor;
// Current stroke color
void*
BaseObject;
// Internal
LBOOL
CIDFont;
// See description
char*
Text;
// Pointer to raw binary text buffer
UI32
TextLen;
// Text length in bytes
struct TTextRecordA* RawKern;
// Raw kerning array
struct TTextRecordW* Kerning;
// Translated Unicode kerning array
UI32
KerningCount; // Number of kerning records
float
TextWidth;
// Text width incl. kerning space
void*
IFont;
// Font object used to print the string
LBOOL
Embedded;
// If true, the font is embedded
float
SpaceWidth;
// Measured in text space
LBOOL
ConvColors;
// See description
TPDFColorSpace
DestSpace;
// See description
UI32
DeleteKerningAt; // See description
UI32
FontFlags;
// PDF font flags
// -------------------- 12 Reserved fields --------------------
SI32
Reserved1..12;
};
This function can be used to extract the text of a page or template, or to find a specific text that
should be replaced or deleted with the function ReplacePageText() or ReplacePageTextEx().
The structure TPDFStack must be initialized with InitStack() before calling the function the first
time. All members of this structure are read only with the exception of the variables in red color.
These values can be changed after the structure has been initialized with InitStack(). Do not change
the value of another member; otherwise the function causes maybe an access violation!
Structure TPDFStack:
Member
Description
ctm
The matrix represents the current coordinate system (user space). The matrix is
already pre-multiplied because the function returns only when a text showing
operator was found.
tm
This matrix represents the text coordinate system in which all text properties are
calculated. We call this coordinate system text space. To enable the calculation of
the text position the matrix must be multiplied with the matrix ctm.
x, y
These members are no longer used. All positioning operators are already
included in the text transformation matrix tm.
 

Previous topic: GetPageObject (Rendering Engine), GetPageOrientation (Rendering Engine), GetPageText

Next topic: External CMaps