You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Daniele Ribaudo (Jira)" <ji...@apache.org> on 2023/11/22 08:12:00 UTC

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

Daniele Ribaudo created PDFBOX-5717:
---------------------------------------

             Summary: 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
         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 2.0.x release is successfully completed.

Here you are a snipped code to reproduce the error:

{{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());}}



--
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