THotPDF.GetFormFieldType Method
Returns a terminal field's type, resolving an inherited /FT entry through its parent fields
Declaration
function GetFormFieldType(FieldIndex: Integer): THPDFLoadedFormFieldType;
function GetFormFieldType(const FieldName: AnsiString): THPDFLoadedFormFieldType;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | Zero-based terminal-field index |
FieldName | Qualified field name, including any parent components |
Return value
Returns lfftText, lfftButton, lfftChoice, or lfftSignature; an unrecognized type returns lfftUnknown
Usage notes
- The nearest inherited type applies without copying it into the child dictionary
- Both overloads raise an exception when the target field does not exist
- A parent that supplies a type for named children is not exposed as an additional terminal field