Page 1 of 1

PDF compare

Posted: 2016-03-11T02:57:14-07:00
by Winki
Hello
I just have to compare PDFs. This works fine with compare.exe as long as the PDFs are single sided. Is there a easy way to compare PDFs with two sides or do I have to split these PDFs in two single sided files?

Thanks in advance
Winki

Re: PDF compare

Posted: 2016-03-11T03:28:35-07:00
by snibgo
I don't think you can do that with "compare". But with "convert, you can do this:

Code: Select all

convert first.pdf null: second.pdf -compose Difference -layers composite -format %[fx:mean]\n info:
This will do a pairwise comparison between the PDF files. If each has ten pages, you will get ten numbers between 0.0 and 1.0, where 0.0 means they are identical.

Re: PDF compare

Posted: 2016-03-11T04:23:16-07:00
by Winki
Hi snibgo
thanks for your quick response.
I'm not really familiar with IM, so I copied your code 1:1 (only replaced filenames) and I get "Invalid parameter null:" from IM :-(
Did I do something wrong?

Re: PDF compare

Posted: 2016-03-11T04:29:18-07:00
by snibgo
What version of IM are you using? If older than about 6.9, I suggest you upgrade.

Re: PDF compare

Posted: 2016-03-11T04:37:28-07:00
by Winki
Ok, seems I have version 6.8.4-9.
Unfortunately this is stored on a server and I'm not able to update.
So I think I have to split the Files ...

Re: PDF compare

Posted: 2016-03-11T04:48:38-07:00
by Winki
Hi snibgo, me again.
I tried your code once again on a other system where I have IM 6.9.1.
Here it works fine. So it's clear that the problem is the IM version on the server.

Thanks a lot
Winki

P.S.: Its my first Post on this forum. Should/can I mark it as solved?

Re: PDF compare

Posted: 2016-03-11T05:04:04-07:00
by snibgo
You can edit the title. Put [Solved] at the start.