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
Usage notes
- A read-only field cannot be changed by the user in a compliant viewer
- Use THotPDF.SetLoadedFormFieldRequired for the companion Required flag