Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 709

Previous Page 708   Index   Next Page 710

Function Reference
Page 709 of 750
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
The function defines the output rectangle that is used to output formatted text by the function
WriteFText(). The text is not clipped into the rectangle. WriteFText() executes a callback if defined
(see SetOnPageBreakProc()), when the rectangle was filled with text and more text is available for
output. If no callback function is used, the text continues on the next page by using the same output
rectangle. The usage of the function is described in detail under WriteFText().
The parameter Height can be set to -1 to determine that no page break should occur.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetTextFieldValue

Next topic: SetTextScaling