Files
pdfcraft/crates
mtlcl410andClaude Opus 5.5 25d07f69b5 fix(forms): a turned field keeps its place and its text runs along the turn (#4296)
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
2026-10-31 16:05:02 +08:00
..
…