You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andrei Solntsev (JIRA)" <ji...@apache.org> on 2014/04/22 23:22:15 UTC

[jira] [Created] (PDFBOX-2038) Method VisualSignatureParser#parse does not close COSDocument

Andrei Solntsev created PDFBOX-2038:
---------------------------------------

             Summary: Method VisualSignatureParser#parse does not close COSDocument
                 Key: PDFBOX-2038
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2038
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.8.4
            Reporter: Andrei Solntsev
            Priority: Minor


I am adding a visual signature to my PDF.

SignatureOptions options = new SignatureOptions();
options.setVisualSignature( new FileInputStream("my.jpg") );

After a while I am getting the following warning in logs:
Warning: COSDocument: You did not close a PDF Document

The problem cause is probably the method org.apache.pdfbox.pdfparser.VisualSignatureParser#parse which creates instance of COSDocument, but does not close it.




--
This message was sent by Atlassian JIRA
(v6.2#6252)