red6 / pdfcompare

A simple Java library to compare two PDF files
Apache License 2.0
220 stars 66 forks source link

is there a way to exclude the differences of the actual data between two PDF reports? #22

Closed aeendale closed 6 years ago

aeendale commented 6 years ago

I am trying to compare two PDF reports irrelevant of the actual data. I am more interested to ensure the coordinates of the data between the two reports are identical. is there a way to exclude the difference of data between two PDF reports using the pdfCompare library?

finsterwalder commented 6 years ago

You can define areas of your document, that should be excluded from the comparison. Check out exclusions in the README. Some Background: PdfCompare renders PDF pages to images and does a pixel by pixel compare. All you can do is exclude rectangular areas from the comparison.