mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 02:29:31 -06:00
To classify what later revisions changed, the signed bytes were reopened with Document::open, without a password, so for a file opened with a nonempty user password the earlier revision was unreadable and the earlier signature became Invalid as soon as it was counter-signed. Document:: open_with_same_credentials opens such bytes with the current document's own security handler when their /Encrypt and /ID are the same (no password is needed again or kept), and the signature validator uses it. Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>