Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 439

Previous Page 438   Index   Next Page 440

Function Reference
Page 439 of 766
UI16* Text;
// Translated Unicode string (not null-terminated!)
UI32 Length;
// Length in characters
float Width;
// String width measured in text space
};
struct TPDFStack
{
struct TCTM
ctm;
// Pre-multiplied global transf. matrix
struct TCTM
tm;
// Pre-multiplied text transf. matrix
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!
 

Previous topic: GetPageText

Next topic: External CMaps