mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
Setting a field's rotation (Properties > Position, form_set_props) swapped the widget's width and height around its center, so a tall field placed along a page edge jumped into a short, wide one, and typing in it showed the text upright. ISO 32000-2 Table 192 /MK /R turns the widget annotation relative to the page; its /Rect stays the area it occupies in default user space. So a rotation now changes only /MK /R: the rectangle stays, and the regenerated appearance lays the text out along the turned direction (the box /BBox is as wide as the field is tall, and /Matrix turns it onto /Rect). On screen, the in-place editor and the just-committed preview paint the text turned by /MK /R less the page's /Rotate and the view's rotation, as the page will show it. The editor still takes the keys and pointer over the field, and a press or drag places the caret in the turned text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC