Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 727

Previous Page 726   Index   Next Page 728

Function Reference
Page 727 of 770
const char* DefValue, // Field's default value or NULL
TTextAlign Align)
// Text alignment
The function sets or changes the value and default value of a text field. The parameters Value and
DefValue can both be NULL, if both values should be deleted. The parameter DefValue defines the
default value of the field, this value is shown in Adobe's Acrobat as long as the field has no value; it
will be hidden when entering the field.
The strings are drawn with the font that is associated with the field. The font size is taken from the
field settings. If set to “auto”, the font size is computed from the field’s bounding box.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. Because interactive form
fields do not support Unicode, the strings must contain characters which are defined in the code
page 1252 or MacRoman.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetTextFieldValueEx
Syntax:
LBOOL pdfSetTextFieldValueEx(
const PPDF* IPDF,
// Instance pointer
UI32 Field,
// Text field handle
const char* Value) // New value or NULL to delete it
The function changes or sets the value of a text field. If the value is set to NULL, the field's value will
be deleted.
The strings are drawn with the font that is associated with the field. The font size is taken from the
field settings. If set to “auto”, the font size is computed from the field’s bounding box.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. Because interactive form
fields do not support Unicode, the string must contain characters which are defined in the code page
1252 or MacRoman.
SetTextRect
Syntax:
LBOOL pdfSetTextRect(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle or -1
 

Previous topic: SetTextFieldValue

Next topic: SetTextRise, SetTextScaling