PDFium Delphi Component Docs

IsXfaFormField function

Unit: FPdfXfa
Reports whether a native form-field type code belongs to the XFA range

Syntax

function IsXfaFormField(FieldType: Integer): Boolean;

Parameters

FieldTypeInteger

Return Value

Boolean

Description

IsXfaFormField returns True when FieldType lies between FPDF_FORMFIELD_XFA (8) and FPDF_FORMFIELD_XFA_TEXTFIELD (15)

It is the Pascal equivalent of the IS_XFA_FORMFIELD macro in the PDFium C headers

The type codes 0 to 7 are the stable AcroForm set (unknown, pushbutton, checkbox, radio button, combo box, list box, text field, signature); 8 to 15 exist only in XFA-enabled builds and cover the generic XFA type plus the XFA checkbox, combo box, image field, list box, push button, signature, and text field types

Remarks

Example

if IsXfaFormField(Info.FieldType) then
  ShowMessage('XFA form field detected');

See Also

XfaFeaturesAvailable, TPdf.XfaRuntimeAvailable, TPdf.FormFieldInfo, TPdf.XFA