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)

Reply via email to