function IsXfaFormField(FieldType: Integer): Boolean;
| FieldType | Integer |
BooleanIsXfaFormField 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
if IsXfaFormField(Info.FieldType) then
ShowMessage('XFA form field detected');