THotPDF.GetLoadedFormFieldMaxLength Method
Returns the maximum character count for a loaded text field, resolving indirect and inherited /MaxLen entries
Declaration
function GetLoadedFormFieldMaxLength(FieldIndex: Integer): Integer;
Parameters
FieldIndexis the zero-based loaded form-field index
Return value
Returns the non-negative /MaxLen value or zero when the field or entry is absent or invalid
The nearest local value overrides its ancestors; reading the value does not copy it into the child field