DynaPDF Manual - Page 777
Previous Page 776 Index Next Page 778
Page 777 of 821
const PPDF* IPDF,
// Instance pointer
// Text field handle
const char* Value,
// Field's value or NULL
const char* DefValue, // Field's default value or NULL
// 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.
AFPercent_Format(), and AFSpecial_Format().
However, the results of number formats of Adobes Acrobat and DynaPDF are sometimes slightly
can be reproduced with all known Acrobat versions.
Example number format with two fractional digits:
SetGStateFlags(). The appearance stream of text fields is then created with the raw field value.
This function is implemented in an Ansi and Unicode compatible version.
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: How to use text as clipping path?
Next topic: SetTextFieldValueEx, SetTextRect, SetTextRise