THotPDF.SetLoadedFormFieldReadOnly Method
Toggles the ReadOnly bit (bit 1) of a loaded form field's /Ff flags
Declaration
procedure SetLoadedFormFieldReadOnly(FieldIndex: Integer; AReadOnly: boolean);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based index of the form field |
AReadOnly | True to set the ReadOnly flag, False to clear it |
Return value
This member does not return a value
Starts from the effective inherited /Ff mask and changes only ReadOnly on the selected field, preserving all other bits without modifying its parent or siblings
See AcroForm field flag precision for signed mask values, inheritance and native builder behavior
Usage notes
- A read-only field cannot be changed by the user in a compliant viewer
- Use THotPDF.SetLoadedFormFieldRequired for the companion Required flag