THotPDF.SetLoadedFormFieldRotation Method
Writes /MK /R onto each widget belonging to the chosen field
Declaration
procedure SetLoadedFormFieldRotation(FieldIndex, ADegrees: Integer);Usage notes
- Positive and negative multiples of 90 degrees are normalised to 0, 90, 180 or 270
- Any other angle raises an exception
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