THotPDF.AddLoadedTextField Method

Adds a new text input field to the specified page of the loaded PDF and returns the field's index in the global field list

Declaration

function AddLoadedTextField(PageIndex: Integer; ARect: THPDFRect; const AFieldName: AnsiString): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the page where the field is to be added
ARectThe rectangular area of the field on the page (PDF user coordinates)
AFieldNameThe unique name of the field, used to identify the field during form submission or FDF export

Return value

Returns the zero-based integer index of the newly created text field in the global field list, which can be used for subsequent field property settings

Usage notes

Related APIs