RWOB created PDFBOX-4180:
----------------------------

             Summary: 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
         Attachments: TextToPDF.java

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