THotPDF.SetLoadedFormFieldRotation Method

Writes /MK /R onto each widget belonging to the chosen field

Declaration

procedure SetLoadedFormFieldRotation(FieldIndex, ADegrees: Integer);

Usage notes

This setter changes rotation metadata only and does not regenerate /AP; explicitly call EnsureLoadedFieldAppearanceStream before saving when a refreshed normal appearance is required

Native regenerated appearances use exchanged logical width and height for 90 and 270 degrees, followed by a unit-scale counterclockwise matrix; generated button On and Off states share the same geometry

The setter leaves field values and the stored widget rectangle unchanged; it does not change the headless rotation APIs

Loaded form field editing