mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
On opening, the engine laid the form out again after every initialize or calculate script that changed presence, access or instances. On a large form one layout takes about the whole 3 s open budget, so the remaining initialize scripts were skipped, and that half-initialized form was what saving kept: each later opening hid more of it, and a page shown at the first opening, filled in, was hidden and its data reset by the next one. The scripts read the live form (template, data and overrides), not the pages, and XFA 3.3 fires initialize after data binding, before layout (pp. 388, 390, 407). On opening, a needed layout is now recorded and done once in finish(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CBVyQEwtmEw3mS1MoAiwrK