You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/05/18 08:22:00 UTC

[jira] [Closed] (PDFBOX-4546) Cannot decrypt PDF, the password is incorrect

     [ https://issues.apache.org/jira/browse/PDFBOX-4546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-4546.
-----------------------------------
    Resolution: Cannot Reproduce

Closing due to no further feedback. You can still comment and/or reopen.

If the problem is still in 2.0.15, try to find out whether your problems are related to the missing SASLprep, use this class:
https://github.com/tombentley/saslprep/blob/master/src/main/java/SaslPrep.java
then include a call like this:
{code}
password = SaslPrep.saslPrepQuery(password);
{code}
Feedback is always appreciated.

> Cannot decrypt PDF, the password is incorrect
> ---------------------------------------------
>
>                 Key: PDFBOX-4546
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4546
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: GirishPatil
>            Priority: Major
>
> I am getting following exception while decrypting PDF password even though _PDF password is correct:_
> org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException: Cannot decrypt PDF, the password is incorrect
>  at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareForDecryption(StandardSecurityHandler.java:256)
>  at org.apache.pdfbox.pdfparser.PDFParser.prepareDecryption(PDFParser.java:320)
>  at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:220)
>  at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:271)
>  at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:984)
>  at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:922)
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org