oliveiracwb / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

File Handle not closed when trying to render PDF Output #1410

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I am using TESS4J JAVA API (JNA) to access TessPDFRenderer to create a 
searchable pdf
2. PDF is getting generate,however file is open and not closed until JVM is 
terminated
3.

What is the expected output? What do you see instead?

PDF Output File is not released but kept open until JVM terminated.

What version of the product are you using? On what operating system?

Tesseract 3.0.3/3.0.4 via TESS4J API in Windows

Please provide any additional information below.

https://sourceforge.net/p/tess4j/discussion/1202294/thread/de781126/?limit=25#34
92

Original issue reported on code.google.com by panneer....@gmail.com on 29 Jan 2015 at 4:12

GoogleCodeExporter commented 9 years ago
1. We do not provide support for tesseract wrappers (see FAQ).
2. Make sure that you used API correct way. Have a look at C-API example for 
producing pdf[1] and try to do the same in TESS4J...

[1] http://pastebin.com/3XQeScyV

Original comment by zde...@gmail.com on 8 Feb 2015 at 10:40