THotPDF.EnsureLoadedFieldAppearanceStream

THotPDF

 

Top  Previous  Next

Ensures the appearance stream is generated for a form field

 

Delphi syntax:

function EnsureLoadedFieldAppearanceStream( FieldIndex: Integer ): boolean;

 

Description

Ensures the appearance stream is generated for a form field

For native loaded widgets rotated by /MK /R, quarter turns exchange the logical layout width and height before clipping and painting; the matching BBox and unit-scale counterclockwise Matrix map that viewport to the unchanged physical rectangle

Generated button normal appearances, including checkbox and radio On and Off states, use the same logical bounds and rotation transform

SetLoadedFormFieldRotation writes MK.R only; call this method explicitly to regenerate AP, without changing field values or headless rotation behaviour

Force updates the field visual representation/DA, /Q, /V, /DV, /Ff, and /MaxLen values

After SetLoadedFormFieldOptions, explicitly call this method when refreshed output is needed; option replacement does not automatically regenerate AP and AutoFormAppearances is not a loaded-field refresh switch

Choice layout consumes final stored option order and effective selection and viewport state without another ffSort pass; only valid existing explicit TI is remapped by replacement, whilst absent or invalid TI retains the existing storage and rendering interpretation; retained fractional index tokens are not rounded into valid replacement indices

A widget inheriting updated field TI retains that inheritance; a widget with its own Opt keeps its own option index space and preserved I semantics rather than consuming incompatible new field indices

Choice fields decode Unicode option strings and match stored export values to display labels without changing /V, /I, or /Opt data

Combo boxes display a matching option label or the custom value; list boxes display their options even when no option is selected and highlight single or multiple selections, using selection indices to distinguish duplicate export values

Visible listbox option labels use the effective field /Q value for left, centre, or right alignment through the existing text-width rules and minimum left inset; the /TI window, selection backgrounds, and stored /V, /I, and /Opt data are preserved

 

See also: THotPDF