THPDFPage.CreateTextField Method

Method summary: THPDFPage.CreateTextField Method

Declaration

function CreateTextField(const FieldName, InitialValue: AnsiString; Rectangle: TRect; MaxLen: Integer = 0; Flags: THPDFFormFieldFlags = []): THPDFAcroFormField;

Unit

HPDFDoc

Parameters

NamePurpose
FieldNameName of the form field
InitialValueInitial text value
RectangleWidget rectangle on the page
MaxLenMaximum accepted text length, or 0 for no explicit limit
FlagsAdditional form field flags

Return value

THPDFAcroFormField wrapper for the created text field

The field mask assembled from Flags retains its exact integer bits during creation and subsequent fluent flag edits, saving and reloading

See AcroForm field flag precision for signed mask values, inheritance and native builder behaviour

Usage notes

Related APIs