DynaPDF Manual - Page 366

Previous Page 365   Index   Next Page 367

Function Reference
Page 366 of 777
fcBackColor
= 0,
fcBorderColor = 1,
fcTextColor
= 2
}TFieldColor;
typedef enum
{
csDeviceRGB
= 0,
csDeviceCMYK = 1,
csDeviceGray = 2
}TPDFColorSpace;
The function retrieves a specific color of an interactive form field. The parameter AField must be a
valid field handle. The parameter ColorSpace defines the color space in which the color was defined.
Return values:
If the function succeeds the return value is 1 and the parameters ColorSpace and Color are filled with
values. If the function fails the return value is 0.
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
 

Previous topic: GetFieldChoiceValue, GetFieldColor

Next topic: Optional Content, GetFieldEx2, GetFieldExpValCount