You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/04/03 16:07:00 UTC
[jira] [Resolved] (PDFBOX-4180) TextToPDF Does Not Explicitly Close
Reader objects
[ https://issues.apache.org/jira/browse/PDFBOX-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-4180.
-------------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0 PDFBox
2.0.10
> 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
> Fix For: 2.0.10, 3.0.0 PDFBox
>
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org