This question is a year ago, but I have the same issue too with PDFBox v0.8 latest release. I tried to open an encrypted pdf(Attached with the message), I enetered the password using the code down here, and I've got the same Exception.
I can open the PDF with Acrobat Reader after inserting the password "123". Any ideas how to fix this ? Code : if( pdfFile.isEncrypted() ) { StandardDecryptionMaterial dm = new StandardDecryptionMaterial( "123" ); pdfFile.openProtection( dm ); // Exception } Exception : org.apache.pdfbox.exceptions.CryptographyException: Error: The supplied password does not match either the owner or user password in the document. at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:231) at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1109) Best regards , Hesham