mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:47:22 -06:00
An XFA form with no AcroForm fields was always classified as dynamic, so opening it laid the template out into new pages and appended them as a revision: the pages the user saw, and any later save, were PdfCraft's layout rather than the file's own pages, with nothing saying so. Adobe Designer writes <dynamicRender>forbidden</dynamicRender> in the config packet of a static PDF form; such a form is now static and its pages are kept. /NeedsRendering still makes a form dynamic, and with no word from the config a form without fields stays dynamic as before. The config packet is found in an /XFA array or a whole-XDP stream, read with a 16 MiB decode cap, and scanned for the one element. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz