Roman created PDFBOX-4286:
-----------------------------

             Summary: Encrypted and certified PDF file could not be opened
                 Key: PDFBOX-4286
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4286
             Project: PDFBox
          Issue Type: Bug
            Reporter: Roman
         Attachments: Demo1_encrypted_.pdf

When trying to open attached PDF using
{code}
PDDocument.load(..)
{code}

get error:

{code}
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.COSParser.prepareDecryption(COSParser.java:2873)
        at 
org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:284)
        at 
org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:171)
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:220)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1012)
{code}

The same happening when opening using PDF debugger.

In the same time, this PDF opening fine (without a password needed) by Adobe 
Reader.

Also, when this doc is opened in Rups, the following error shown: "Unknown 
encryption type R = 6"




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

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

Reply via email to