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

NamePurpose
FieldIndexZero-based index of the form field
AReadOnlyTrue 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

Related APIs