mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-30 04:58:34 -06:00
An auto-sized (`0 Tf`) single-line text field drew at most 12 pt however tall the box. Acrobat Reader draws it at the size the height gives (checked black-box on a synthetic form: 30 pt and 60 pt fields); ISO 32000-2 §12.7.4.3 leaves the size implementation-defined. auto_text_size_by now keeps the existing height / 1.15 size without the 12 pt cap, still shrinks to the width and never goes under 4 pt, with the height bounded at 14,400 (MAX_AUTO_HEIGHT, the largest page side ISO 32000-1 Annex C recommends). Multiline and comb auto-size keep their 12 pt cap: not yet checked against Acrobat. Tests: the forms unit tests now pin a tall box's size (they pinned 12 pt), and an automation test fills a 30 pt field through form_fill and measures the drawn text with text_find. All three fail with the cap restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9