red6 / pdfcompare

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

Compare with password protected PDF file #39

Closed paulfkp closed 6 years ago

paulfkp commented 6 years ago

I found this pdf comparator so awesome and really helpful for my project testing, but recently I have a problem with the password protected file, Is it possible to add a method in to insert the password so the file become unprotected?

finsterwalder commented 6 years ago

The new release 1.1.34 has support for encrypted PDFs through PdfComparator.withExpectedPassword() and PdfComparator.withActualPassword() methods.

paulfkp commented 6 years ago

Appreciated for your work! Thanks