DynaPDF Manual - Page 398
Previous Page 397 Index Next Page 399
Function Reference
Page 398 of 839
GetFieldCount
Syntax:
SI32 pdfGetFieldCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of fields contained in the document.
GetFieldEx
Syntax:
LBOOL pdfGetFieldEx(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Field handle
struct TPDFFieldEx* Field) // Structure to be filled
struct TPDFFieldEx
{
UI32
StructSize;
// Must be set to sizeof(TPDFFieldEx)
LBOOL
Deleted;
// Marked as deleted?
struct TPDFRect BBox;
// Bounding box in bottom-up coordinates
TFieldType
FieldType;
// Field type
TFieldType
GroupType;
// See description
UI32
Handle;
// Field handle
UI32
BackColor;
// Background color
TExtColorSpace
BackColorSP;
// Color space of the background color
UI32
BorderColor;
// Border color
TExtColorSpace
BorderColorSP; // Color space of the border color
TBorderStyle
BorderStyle;
// Border style
float
BorderWidth;
// Border width
float
CharSpacing;
// Text fields only
LBOOL
Checked;
// Check boxes only
UI32
CheckBoxChar;
// ZapfDingbats character index
TCheckBoxState
DefState;
// Check boxes only
const char*
DefValueA;
// Optional default value
const UI16*
DefValueW;
// Optional default value
const void*
IEditFont;
// Pointer to default editing font
const char*
EditFont;
// Postscript name of the editing font
UI32
ExpValCount;
// Combo and list boxes only.
const char*
ExpValueA;
// Check boxes only
const UI16*
ExpValueW;
// Check boxes only
TFieldFlags
FieldFlags;
// Field flags
const void*
IFieldFont;
// Pointer to the field font.
const char*
FieldFont;
// Postscript name of the font
UI32
Reserved;
// Reserved field
double
FontSize;
// Font size. 0.0 = auto font size
const char*
FieldNameA;
// Field name (can be NULL)
const UI16*
FieldNameW;
// Field name (can be NULL)
THighlightMode
HighlightMode; // Highlight mode
LBOOL
IsCalcField;
// If true, the OnCalc event is
// connected with a JavaScript action
const char*
MapNameA;
// Optional unique mapping name
const UI16*
MapNameW;
// Optional unique mapping name
UI32
MaxLen;
// Text fields -> zero = not restricted
const void**
Kids;
// Array of children -> GetFieldEx2()
UI32
KidCount;
// Number of fields in the array
void*
Parent;
// Pointer to parent field or NULL
SI32
PageNum;
// Page on which the field is used or -1
SI32
Rotate;
// Rotation angle in degrees
TTextAlign
TextAlign;
// Text fields only
UI32
TextColor;
// Text color
TExtColorSpace
TextColorSP;
// Color space of the field's text
Previous topic: GetFieldColor
Next topic: Radio Buttons, Formatted Text Field Value