Reveal old PDF metadata

Started by obetz, May 15, 2025, 01:06:24 AM

Previous topic - Next topic

obetz

Hi all,

AFAIK, ExifTool only appends PDF metadata, the old metadata stays in the document but is inactive.

How can I read the previous metadata after such a change (assuming that I didn't re-linearize the PDF)?

Or completely revert the change done by ExifTool?

StarGeek

From the PDF Tags page
QuoteIf ExifTool was used to modify a PDF file, the original may be recovered by deleting the PDF-update pseudo-group (with -PDF-update:all= on the command line).

This is the link I keep handy to describe the incremental update. "Incremental Updates in PDF files", Debenu Foxit

Phil has said in the past that exiftool can only remove updates it has made, not those made by other programs if they also use incremental updates.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

obetz

#2
Thanks, "incremental update" is the description I was missing.



obetz

the search for suitable tools resulted in a few hits

https://blog.didierstevens.com/programs/pdf-tools/ -> pdftool.py "can check if a PDF contains incremental updates, and select the versions you want"

pdftool.py iu source.pdf lists all incremental updates

pdftool.py -d -s 2 -o out.pdf iu source.pdf extracts version 2

There is also a Java tool "Multivalent" on Sourceforge, but the author removed the "undo" part a few years ago.

StarGeek

Oh, nice. A new tool for the toolkit.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype