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

Warning "You did not close a PDF Document" when visual signature is added

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.11
    • None
    • PDModel, Signing

    Description

      When visual signature is added, warning "You did not close a PDF Document" is added to the output log. It appears, that VisualSignatureParser creates an instance of COSDocument and later is held by SignatureOptions, but for this instance the #close() method is never called, which results to that warning reported by its #finalize() method.
      Probably it should by closed by PDDocument when used after signing.

      Attachments

        1. addSignatureFix.patch
          2 kB
          Bernd Engelhardt
        2. PDFBOX_3322_VisualSignatureClosing.patch
          1 kB
          Petras

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              abyss Petras
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: