Skip to content

Normalize /LastModified - #6

Merged
SimonCropp merged 1 commit into
mainfrom
normalize-lastmodified
Jul 29, 2026
Merged

Normalize /LastModified#6
SimonCropp merged 1 commit into
mainfrom
normalize-lastmodified

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

A producer stamps a wall-clock time into the /LastModified of a page or page-piece dictionary, so it changes on every render even when nothing about the document did. PDFTron writes one onto the form XObject it uses for a watermark:

/PieceInfo<</PDFTRON<</LastModified(D:20260729134217Z)/Private/Watermark>>>>

It is a plain PDF date string like /ModDate, so the existing length-preserving ZeroPdfString pass covers it.

A producer stamps a wall-clock time into the /LastModified of a page or page-piece
dictionary, so it changes on every render even when nothing about the document did.
PDFTron writes one onto the form XObject it uses for a watermark:

/PieceInfo<</PDFTRON<</LastModified(D:20260729134217Z)/Private/Watermark>>>>

It is a plain PDF date string like /ModDate, so the existing length-preserving
ZeroPdfString pass covers it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant