title: ScratchFileBuffer not closed message when read pdf
body: <p>I have this code to read and extract a string from a pdf.</p>
  
  <p>It works well but the log but the log repeatedly throws this message and I don't know why it is:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class Test {
      public static void main(String[] args) {
  
          PDDocument doc = null;
          try {
              doc = PDDocument.load(new File("C:/prueba.pdf"));
              PDFTextStripper pdfs = new PDFTextStripper();
              String textOfPdf = "";
  
              textOfPdf = pdfs.getText(doc);
              String regex = "([A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5})";
              Pattern patron = Pattern.compile(regex);
  
              Matcher emparejador = patron.matcher(textOfPdf);
              emparejador.find();
              String text = emparejador.group(0);
  
              System.out.print(text);
          } catch (IOException e) {
              e.printStackTrace();
          } finally {
              try {
                  if (doc != null) {
                      doc.close();
                  }
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
      }
  }
  </code></pre>
  
  <pre><code>
  12:52:37.335 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{25, 0}
  12:52:37.336 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{26, 0}
  12:52:37.336 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{28, 0}
  12:52:37.336 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{27, 0}
  12:52:37.336 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{30, 0}
  12:52:37.337 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{31, 0}
  12:52:37.338 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - parsed=COSObject{5, 0}
  
  12:52:37.772 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.772 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.772 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  12:52:37.773 [Finalizer] DEBUG org.apache.pdfbox.io.ScratchFileBuffer - ScratchFileBuffer not closed!
  </code></pre>
  
  <p>I have also tried tess4j library but the same thing happens.
  any ideas?</p>
  
  <p>Regards</p>