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 2023/11/22 16:47:00 UTC
[jira] [Commented] (PDFBOX-5717) NullPointerException calling saveIncrementalForExternalSigning
[ https://issues.apache.org/jira/browse/PDFBOX-5717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17788831#comment-17788831 ]
Andreas Lehmkühler commented on PDFBOX-5717:
--------------------------------------------
[~daniriba] please attach the stacktrace of the NPE as well
> 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
> Priority: Major
> 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