Skip to content

Normalize Dublin Core <dc:date> in PdfNormalizer#517

Open
moni-dips wants to merge 1 commit into
VerifyTests:mainfrom
moni-dips:fix/normalize-dc-date
Open

Normalize Dublin Core <dc:date> in PdfNormalizer#517
moni-dips wants to merge 1 commit into
VerifyTests:mainfrom
moni-dips:fix/normalize-dc-date

Conversation

@moni-dips

Copy link
Copy Markdown

PdfNormalizer zeroed the xmp:CreateDate/ModifyDate/MetadataDate elements but not the Dublin Core dc:date element.

Apache FOP writes the render timestamp into dc:date, so the #pdf snapshot target (added in #516) was non-deterministic for FOP-produced PDFs while the sibling dates were neutralized.

This PR adds dc:date to the normalized set together with a focused test.

PdfNormalizer zeroed the xmp:CreateDate/ModifyDate/MetadataDate elements but not the Dublin Core <dc:date> element. Apache FOP writes the render timestamp into <dc:date>, so the #pdf snapshot target (added in VerifyTests#516) was non-deterministic for FOP-produced PDFs while the sibling dates were neutralized. Adds <dc:date> to the normalized set plus a focused test.
@SimonCropp SimonCropp modified the milestone: 3.3.1 Jul 14, 2026
@SimonCropp

Copy link
Copy Markdown
Member

i think it is a little more complex #519

can u try 3.3.1

@moni-dips

Copy link
Copy Markdown
Author

yes, I agree, my change was just a quick naïve fix.
tested 3.3.2, accepting received files locally, tests pass, ci fails.
here's the .received. file from CI:
received.pdf

and this is the .verified. file from git:
verified.pdf

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.

2 participants