Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
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.
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); }
Attachments
Attachments
Issue Links
- is duplicated by
-
PDFBOX-3359 Drawing to Graphics2D / ScratchFileBuffer not closed
- Closed