Skip to main content

PDF Output Comparison Tool


This tool was created to compare the PDF reports from an old version of AutoTag/Java Engine/.NET Engine to the reports produced from the newest version. When you provide the program with the location of all of the old reports and the location of the new reports, PDFs with the same name from each directory are compared based on the location and appearance of content. A file named "results.xml" will be created in the working directory and populate with the PDF names and similarity percentages if the percentage is than 99% (not <100 to account for things that should change like dates). In addition to being in results.xml, if a report has differences you have the option to have the two compared PDFs merge into a new one that allows you to view the pages of each PDF side by side in Adobe Reader.

What are the benefits of this tool?

When upgrading to a new version there is always the possibility of things being rearranged in your output. With this tool you can compare all your old reports to the new ones to ensure they've stayed the same.

How to run..

To run open command prompt and navigate to the directory of the .jar. 
Run with "java -jar PDFCompare.jar [OLD FILE LOCATION] [NEW FILE LOCATION] [Y/N for merged PDF]"
example :"java -jar PDFCompare.jar C:\PDF\ C:\PDFnew\ Y"


Things to keep in mind..

  • Documents are going to be compared by filename. If the name doesn't match up in different files it won't be compared.
  • This program can be extremely slow when comparing large PDFs. 
  • Be sure to end the directories with a backslash.
  • Was this article helpful?