*/
public void doTestFile(File file, boolean bLogResult)
throws Exception
{
PDFTextStripper stripper = new PDFTextStripper();
OutputStream os = null;
Writer writer = null;
PDDocument document = null;
try
{
document = PDDocument.load(file);
File outFile = new File(file.getParentFile().getParentFile(), "output/" + file.getName() + ".txt");
os = new FileOutputStream(outFile);
writer = new OutputStreamWriter(os);
stripper.writeText(document, writer);
}
finally
{
if( writer != null )
{