THotPDF.GetLoadedFormFieldWidgetRect Method

Reads one zero-based widget /Rect as a normalized 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 normalized so ARect.Left <= ARect.Right and ARect.Bottom <= ARect.Top, matching GetLoadedFormFieldRect; negative coordinates are kept and extra array elements after the first four are ignored

SetLoadedFormFieldWidgetRect