mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 20:18:06 -06:00
The IRCC IMM forms are certified (DocMDP P=2) and then saved once more with Reader Extensions: a later revision adds the UR3 usage-rights signature and rewrites the XFA `datasets` packet. The diff classified any rewritten stream that wasn't page content or the catalog's XMP as "other changes", so these untouched forms validated as invalid. A stream the signed revision's /AcroForm /XFA array names `datasets` or `form` (the form's data and state) is now a form fill when rewritten, permitted at P=2 and P=3 and refused at P=1 as before. The roles come from the signed revision, so a later revision that names the template "datasets" doesn't make rewriting it a form fill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz