THotPDF.SetLoadedFormFieldRotation Method
Writes /MK /R on every widget belonging to the selected field
Declaration
procedure SetLoadedFormFieldRotation(FieldIndex, ADegrees: Integer);
Usage notes
- Positive and negative multiples of 90 degrees are normalized to 0, 90, 180, or 270
- Other angles raise 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