[ 
https://issues.apache.org/jira/browse/PDFBOX-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424219#comment-16424219
 ] 

ASF subversion and git services commented on PDFBOX-4180:
---------------------------------------------------------

Commit 1828252 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1828252 ]

PDFBOX-4180: close reader

> TextToPDF Does Not Explicitly Close Reader objects
> --------------------------------------------------
>
>                 Key: PDFBOX-4180
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4180
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.9
>            Reporter: RWOB
>            Assignee: Tilman Hausherr
>            Priority: Trivial
>              Labels: easyfix
>         Attachments: TextToPDF.java
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The createPDFFromText method in org.apache.pdfbox.tools.TextToPDF class does 
> not explicitly close the readers. 
> While the intended use is typically from the command line, if a process calls 
> this method directly, the input text file cannot be written for a period of 
> time after the method is called.
> I have attached a simple fix that closes the readers at the end of the method.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to