Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5717

NullPointerException calling saveIncrementalForExternalSigning

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.2 PDFBox, 4.0.0
    • Signing
    • None

    Description

      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:

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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lehmi Andreas Lehmkühler
            daniriba Daniele Ribaudo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment