PDF md5 checksums changing

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
AndrewCampbell
Propeller Head
Posts: 24
Joined: Thu Nov 10, 2016 4:19 am

PDF md5 checksums changing

Post by AndrewCampbell »

If I generate a PDF from Flare, and then immediately generate a second copy of the PDF using identical settings, I get two PDFs that have identical content - which is what should be happening.

However, the md5 checksums of the two versions of the file are different, presumably because metainformation of some kind is embedded in the PDF. Is there any way of stopping Flare adding this metainformation?

I'd like to be able to generate md5 checksums to quickly check if two PDFs are different - that way I can avoid using the painful Acrobat PDF Compare function. I would welcome suggestions for other PDF comparison techniques, particularly command-line based options.
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: PDF md5 checksums changing

Post by trent the thief »

Hi Andrew,

If you check the properties in the PDF's (CTRL+D) you'll find that the File Created and File Modified dates are different. That's enough to throw off the MD5 calculation. There might be a PDF extension that only compares content, but it probably won't be free. The same applies to third-party tools
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
AndrewCampbell
Propeller Head
Posts: 24
Joined: Thu Nov 10, 2016 4:19 am

Re: PDF md5 checksums changing

Post by AndrewCampbell »

Ah! Thanks, I never thought of that.

I'll play around with a script that will change those dates and see what I can come up with (I tend to live on the command line, so I am naturally attracted to problems that can be fixed with a script).
Post Reply