I am decrypting a set of PDF files with the decryptFile method
PdfFileSecurity fileSecurity = new PdfFileSecurity(pdfIn, pdfOut);
result = fileSecurity.decryptFile(ownerPassword);
If the password is correct, everything works fine. But when the password is not correct I don't get any error indication; result is true and no Exception is thrown. The document no longer needs a password to open it, but all the pages are blank.
If I attempt to change the password, it always throws an Exception, even when using the same password that succeeded with decyptFile. The Exception is an OIException: "Getting Owner Password is failed."
Any help with resolving or understanding this issue would be greatly appreciated. Any other work-arounds to determine if a password is good or bad would be good, as well.