Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.8
-
None
Description
The attached file can be viewed, but ExtractText is not possible:
Exception in thread "main" java.io.IOException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:361)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:448)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:413)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:389)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:178)
at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:164)
at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1224)
at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:265)
at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:241)
at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:84)
at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:55)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
at javax.crypto.Cipher.doFinal(Cipher.java:2145)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:343)
... 10 more
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-2510 Getting "Error: The supplied password does not match either the owner or user password in the document." while trying to parse pdf without password in
- Closed