Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4634

org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!

    XMLWordPrintableJSON

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

        1. PDFBoxUtil.java
          4 kB
          ramya

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ramyam07 ramya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: