You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2024/02/12 07:44:00 UTC

[jira] [Updated] (PDFBOX-5717) NullPointerException calling saveIncrementalForExternalSigning

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

Andreas Lehmkühler updated PDFBOX-5717:
---------------------------------------
    Fix Version/s: 3.0.2 PDFBox
                   4.0.0

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org