[
https://issues.apache.org/jira/browse/PDFBOX-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson resolved PDFBOX-2038.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
{quote}
An improvement might be to add a close() method to SignatureOptions, but I'm
not one of the signature people here, so I'd rather wait for their opinion.
{quote}
Seemed like the best idea, so I did this in
[r1607514|http://svn.apache.org/r1607514].
> 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, 1.8.5, 2.0.0
> Reporter: Andrei Solntsev
> Priority: Minor
> Fix For: 2.0.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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)