You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Roman (JIRA)" <ji...@apache.org> on 2018/08/03 08:13:00 UTC
[jira] [Created] (PDFBOX-4286) Encrypted and certified PDF file
could not be opened
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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org