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

Michael Klink commented on PDFBOX-2729:
---------------------------------------

After some debugging it looks to me like the PDFBox signing code has not been 
developed or tested for encrypted files.

Here {{StandardSecurityHandler}} is initialized when the original file is 
parsed. In this context the default constructor is used. This default 
constructor implicitly sets {{policy}} to {{null}}.

When writing the file, though, some {{StandardSecurityHandler}} methods are 
called which require a nun-{{null}} value of {{policy}}.

> Can't sign encrypted PDF files
> ------------------------------
>
>                 Key: PDFBOX-2729
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2729
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 2.0.0
>            Reporter: Cyril Bremaud
>            Assignee: Andreas Lehmkühler
>
> It is not possible to sign an encrypted PDF document.
> More details here :
> [http://stackoverflow.com/questions/29232684/signing-an-encrypted-pdf-document-with-pdfbox-2-0-0]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to