THotPDF.GetLoadedFormFieldFlags Method
Returns the complete field flag bitmask integer value for the specified form field in the loaded PDF document
Declaration
function GetLoadedFormFieldFlags(FieldIndex: Integer): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | The zero-based index of the 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
Usage notes
- 返回值为位掩码,各位含义参见 PDF 规范中关于 Field Flags 的定义(如 ReadOnly、Required、NoExport 等)
- 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