[
https://issues.apache.org/jira/browse/PDFBOX-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141810#comment-15141810
]
Pat Hickey commented on PDFBOX-3229:
------------------------------------
URL:
http://pharmacychain366.ru/wp-content/files_mf/1431539883%D0%9E%D1%82%D1%87%D0%B5%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C%D0%9C%D0%A1%D0%A4%D0%9E%D0%B8%D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%BE%D0%B5%D0%B7%D0%B0%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%D0%B7%D0%B02014%D0%B3..pdf
Stack trace (pdfbox-1.8.11):
Feb 10, 2016 12:35:15 PM org.apache.pdfbox.pdfparser.PDFParser parse
INFO: Document is encrypted
PDFDebugger failed with the following exception:
org.apache.pdfbox.exceptions.WrappedIOException: Input length must be multiple
of 16 when decrypting with padded cipher
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:368)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:472)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:430)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:400)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:218)
at
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:158)
at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1612)
at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:958)
at org.apache.pdfbox.PDFDebugger.parseDocument(PDFDebugger.java:412)
at org.apache.pdfbox.PDFDebugger.readPDFFile(PDFDebugger.java:387)
at org.apache.pdfbox.PDFDebugger.main(PDFDebugger.java:375)
at org.apache.pdfbox.PDFBox.main(PDFBox.java:78)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be
multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:348)
... 11 more
> Decryption fails when Metadata not encrypted but EncryptMetadata is
> true/default.
> ---------------------------------------------------------------------------------
>
> Key: PDFBOX-3229
> URL: https://issues.apache.org/jira/browse/PDFBOX-3229
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.6, 1.8.9, 1.8.11
> Reporter: Pat Hickey
> Priority: Minor
>
> Parsing with either the top-down or bottom-up parser fails for encrypted
> document whose Metadata is not encrypted but whose EncryptMetadata flag is
> true or missing (defaults to true). The document should set EncryptMetadata
> false, but, unfortunately, does not.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]