DynaPDF Manual - Page 778

Previous Page 777   Index   Next Page 779

Function Reference
Page 778 of 821
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.
This function is implemented in an Ansi and Unicode compatible version.
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.
LBOOL pdfSetTextRise(
const PPDF* IPDF, // Instance pointer
double Value)
// Text rise in units
Text rise specifies the distance, to move the baseline up or down from its default location. Positive
values of text rise move the baseline up. Adjustments to the baseline are useful for drawing
superscripts or subscripts. The default location of the baseline can be restored by setting the text rise

Previous topic: SetTextFieldValue, Field format

Next topic: SetTextScaling, SetTransparentColor

Start Chat