Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 354

Previous Page 353   Index   Next Page 355

Function Reference
Page 354 of 750
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
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
 

Previous topic: GetFieldColor

Next topic: GetFieldExpValCount