THotPDF.GetLoadedFormFieldFlags Method
Reads the effective field flag mask from a loaded AcroForm field without changing the document
Declaration
function GetLoadedFormFieldFlags(FieldIndex: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based index of the loaded form field |
Return value
Returns the full 32-bit integer value of the field's Ff key; returns 0 if the field has no Ff key or the index is out of bounds
Returns the exact effective 32-bit /Ff mask in its signed Integer representation, retaining high bits together with the low common flags
A missing or null local /Ff continues the ancestor lookup; reading inherited flags does not create a child override
See AcroForm field flag precision for signed mask values, inheritance and native builder behaviour
Usage notes
- The return value is a bit mask; each bit is defined by the Field Flags entry of the PDF specification (ReadOnly, Required, NoExport and so on)
- Individual flags can be checked via convenient methods like IsFormFieldRequired and IsFormFieldNoExport without manual parsing
- Returns 0 when the index is out of bounds, which is indistinguishable from a field having no flags; you should verify index validity first