[ 
https://issues.apache.org/jira/browse/PDFBOX-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432267#comment-17432267
 ] 

Michael Klink commented on PDFBOX-5299:
---------------------------------------

It might be a case of a PDF where only peripheral objects are encrypted (in 
particular only attached files) and the crypt filter *AuthEvent* is set to 
*EFOpen* ("Authorization shall be required when accessing embedded files.").

Adobe Acrobat won't ask for a password unless the attached files are requested. 
PDFBox on the other hand does not consider the *AuthEvent* value but wants to 
decrypt upon loading anyways.

> org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException: Cannot decrypt 
> PDF, the password is incorrect
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5299
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5299
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.24
>            Reporter: Ling Hock Hin, Daniel
>            Priority: Major
>         Attachments: error.log
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to