DynaPDF Manual - Page 704

Previous Page 703   Index   Next Page 705

Function Reference
Page 704 of 818
SetFieldFontSize
Syntax:
LBOOL pdfSetFieldFontSize(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
double FontSize)
// New font size
The function changes the font size of a specific field. A value of 0.0 is used as auto size. The optimal
font size is then calculated by DynaPDF.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldHighlightMode
Syntax:
LBOOL pdfSetFieldHighlightMode(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
THighlightMode Mode) // New highlight mode
The function changes the highlight mode of a specific field. Supported field types are buttons,
checkboxes, radio buttons, and signature fields. Other field types do not support this property.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldIndex
Syntax:
LBOOL pdfSetFieldIndex(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
UI32 Index)
// New field index (this represents the tab order)
This function can be used to set the tab order of interactive form fields. All fields, independently
whether they are created with DynaPDF or imported from external documents, holds in internal
index which can be used to reorder or sort the fields with this index.
The start index of a new field is not zero, it is 1000 instead. This makes it easier to set a field in front
of all other fields without changing all field indices. However, changing a field index changes not
the tab order directly, the fields of a page must be sorted before the page will be closed with the
function SortFieldByIndex().
The tab order of interactive form fields must be set for each page separately.
 

Previous topic: SetFieldFontEx

Next topic: SetFieldMapName, SetFieldName


Start Chat