THotPDF.GetLoadedFormFieldRect Method

Reads the normalised PDF user-space bounding rectangle of the given loaded AcroForm field, or of its first widget annotation

Declaration

function GetLoadedFormFieldRect(FieldIndex: Integer; out ARect: THPDFRect): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
FieldIndexZero-based index of the loaded AcroForm field
ARectReceives the normalised PDF user-space rectangle (Left <= Right, Bottom <= Top, consistent with GetLoadedAllPageBoxes)

Return value

Returns True when a valid four-number /Rect array was found and resolved on the field itself or on its widget child, and False otherwise

Usage notes

Related APIs