Skip to content

Add a deterministic pdf target#861

Merged
SimonCropp merged 1 commit into
mainfrom
deterministic-pdf
Jul 22, 2026
Merged

Add a deterministic pdf target#861
SimonCropp merged 1 commit into
mainfrom
deterministic-pdf

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Mirrors ConvertSvg, which emits the source document alongside the render. The bytes go through DeterministicPdf so the snapshot does not depend on the volatile fields the producer stamps in.

A password protected pdf now throws rather than silently omitting the target: the trailer /ID seeds the encryption key, so neutralizing it would leave the document undecryptable. The check runs before rendering, which is the expensive part. Use ExcludeTargets("pdf") to verify only the rendered pages.

Mirrors ConvertSvg, which emits the source document alongside the render. The
bytes go through DeterministicPdf so the snapshot does not depend on the volatile
fields the producer stamps in.

A password protected pdf now throws rather than silently omitting the target: the
trailer /ID seeds the encryption key, so neutralizing it would leave the document
undecryptable. The check runs before rendering, which is the expensive part. Use
ExcludeTargets("pdf") to verify only the rendered pages.
@SimonCropp SimonCropp added this to the 3.9.0 milestone Jul 22, 2026
@SimonCropp
SimonCropp merged commit 3d605b5 into main Jul 22, 2026
3 of 5 checks passed
@SimonCropp
SimonCropp deleted the deterministic-pdf branch July 22, 2026 13:59
@github-actions
github-actions Bot restored the deterministic-pdf branch July 22, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant