THotPDF.GetLoadedFormFieldWidgetRect Method

Reads a zero-based widget /Rect as a normalised PDF user-space rectangle

Declaration

function GetLoadedFormFieldWidgetRect(FieldIndex, WidgetIndex: Integer; out ARect: THPDFRect): boolean;

Return value

Returns True when the field, widget, and first four numeric rectangle coordinates are available, resolving both an indirect array and indirect numeric entries

Returns False with the entire output rectangle zeroed when the field, widget, array or any required numeric coordinate is unavailable

Per ISO 32000-1 §7.9.5 the two opposite corners are normalised so that ARect.Left <= ARect.Right and ARect.Bottom <= ARect.Top, in step with GetLoadedFormFieldRect; negative coordinates are kept and extra array elements after the first four are ignored

SetLoadedFormFieldWidgetRect