red6 / pdfcompare

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

Excluding header and footer #46

Closed apathan123 closed 5 years ago

apathan123 commented 5 years ago

Is it possible exclude headers from comparison? My PDF include date and time in header which will always show diff

rmcdouga commented 5 years ago

Have a look at the exclusions facility. It should be able to do what you are looking for,

apathan123 commented 5 years ago

IT allows to specify the area. I was looking for a way to exclude the sections for the each page.

finsterwalder commented 5 years ago

PdfCompare does not know any structural information from the Pdf. So if that's what you meant, the answer is no. There is no way to exclude anything, besides regions given as a rectangular area.

apathan123 commented 5 years ago

ok Thanks for the clarification. Will use regions