Author Topic: Utility to compare PDF pages.....  (Read 6514 times)

0 Members and 1 Guest are viewing this topic.

Rick

  • Guest
Utility to compare PDF pages.....
« on: February 20, 2013, 11:18:31 PM »
Do you have a utility or can you add it to PDFShell Tools to compare the contents of two or more PDF files...(side-by-side)?

Preferably highlighting the differences, word count, size, etc, etc.

Thanks for considering....

Rick...

RTT

  • Administrator
  • *****
  • Posts: 907
Re: Utility to compare PDF pages.....
« Reply #1 on: February 22, 2013, 12:41:15 AM »
Something to think about, but I have some doubts on how useful a tool like this may be, and if there is enough interest in such functionality. In what kind of scenarios is this needed?

But, using the PDF-ShellTools My Scripts functionality, you can easily set up a external tool, such as the diff-pdf, to run form the PDF-ShellTools shell context menu, with a script like this.

Code: [Select]
if (pdfe.Arguments.length > 1) {
    var params = '--view "' + pdfe.Arguments(0) + '" "' + pdfe.Arguments(1) + '"';
    var filepath = pdfe.Arguments(0).substr(0, pdfe.Arguments(0).lastIndexOf('\\') + 1);
    var objShell = new ActiveXObject("Shell.Application");
    objShell.ShellExecute("C:\\diff-pdf\\diff-pdf.exe", params, filepath);
}

The script assumes the diff-pdf tool is installed at "c:\diff-pdf\", and that two PDF files are selected when invoked.

Check attached screenshots for more details.