Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.8
-
None
-
None
-
None
Description
I am using pdfbox- 2.0.8 and i am getting "10:25:49.823 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed! ". attached the same code below.
is it warning or error ? if error please suggest me to close this .
public static void main(String[] args) throws IOException
{ File file = new File("C:/PdfBox_Examples/input/GatePassSample1.pdf"); PDDocument document = PDDocument.load(file); PDFRenderer pdfRenderer = new PDFRenderer(pd); //Rendering an image from the PDF document BufferedImage image = pdfRenderer.renderImage(0); //Writing the image to a file ImageIO.write(image, "png", new File("fileName")); document.close(); }Attachments
Issue Links
- duplicates
-
PDFBOX-3359 Drawing to Graphics2D / ScratchFileBuffer not closed
- Closed