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: [email protected]
For additional commands, e-mail: [email protected]