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

Tilman Hausherr commented on PDFBOX-5717:
-----------------------------------------

Yes the test code works!

> NullPointerException calling saveIncrementalForExternalSigning
> --------------------------------------------------------------
>
>                 Key: PDFBOX-5717
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5717
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Daniele Ribaudo
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.2 PDFBox, 4.0.0
>
>         Attachments: 
> Cryptomathic_White_Paper_-_eIDAS_Compliant_Remote_eSigning.pdf
>
>
> I tried to apply a digital signature to the attached PDF using the method 
> PDDocument.saveIncrementalForExternalSigning in the release 3.0.0 of PDFBox 
> but a NPE is thrown every time.
> The same action executed on a 2.0.x release is successfully completed.
> Here you are a snipped code to reproduce the error:
>    
> {code:java}
> PDDocument document = Loader.loadPDF(new 
> File("Cryptomathic_White_Paper_-_eIDAS_Compliant_Remote_eSigning.pdf"));
> document.addSignature(new PDSignature(), new SignatureOptions());
> ExternalSigningSupport externalSigning = 
> document.saveIncrementalForExternalSigning(new ByteArrayOutputStream());
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to