DynaPDF Manual - Page 521

Previous Page 520   Index   Next Page 522

Function Reference
Page 521 of 860
GetTextDrawMode
Syntax:
SI32 pdfGetTextDrawMode(
const PPDF* IPDF) // Instance pointer
typedef enum
{
dmNormal
= 0,
dmStroke
= 1,
dmFillStroke
= 2,
dmInvisible
= 3,
dmFillClip
= 4,
dmStrokeClip
= 5,
dmFillStrokeClip = 6,
dmClipping
= 7
}TDrawMode;
The function returns the text draw mode. Se draw modes are described in detail under
SetTextDrawMode().
GetTextFieldValue
Syntax:
LBOOL pdfGetTextFieldValue(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
char* ADDR Value,
// Field value
LBOOL ADDR ValIsUnicode,
// If true, Value is a Unicode string
char* ADDR DefValue,
// Default value
LBOOL ADDR DefValIsUnicode) // If true, DeValue is a Unicode string
The function returns the value and default of a text field. Both values can be in Ansi or Unicode
format (UTF-16).
Return value:
If the function succeeds the return value is 1, if the function fails the return value is 0.
GetTextRect
Syntax:
SI32 pdfGetTextRect(
const PPDF* IPDF,
// Instance pointer
double ADDR PosX,
// X-Coordinate of the rectangle
double ADDR PosY,
// Y-Coordinate of the rectangle
double ADDR Width,
// Width of the rectangle
double ADDR Height) // Height of the rectangle
The function retrieves the bounding rectangle to output formatted text. No parameter of the
function must be NULL. See also SetTextRect(), WriteFText().
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: GetTemplHeight, GetTemplWidth, GetTextBBox

Next topic: GetTextRise, GetTextScaling