Roman Pichlik created PDFBOX-3388:
-------------------------------------
Summary: PDFTextStripper - ScratchFileBuffer not closed!
Key: PDFBOX-3388
URL: https://issues.apache.org/jira/browse/PDFBOX-3388
Project: PDFBox
Issue Type: Bug
Reporter: Roman Pichlik
Attachments: test.pdf
_PDFTextStripper_ or inherently used classes probably do not close all opened
streams under all circumstances. You can reproduce that by the following
snippet of code and the attached PDF file.
{code}
try (RandomAccessBuffer rab = new RandomAccessBuffer(is)) {
PDFParser parser = new PDFParser(rab);
parser.parse();
try (COSDocument cosDoc = parser.getDocument();PDDocument pdDoc =
new PDDocument(cosDoc);){
PDFTextStripper pdfStripper = new PDFTextStripper();
pdfStripper.getText(pdDoc);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]