title: Check if a PDF file is a scanned one
body: <p>What is the best way to programmatically check if a PDF file is a totally scanned one?
  I do have iText and PDFBox at my disposal.  I can check if a pdf file contains text or not, and according to the result to decide if this file is OCRed, but this solution is not 100% accurate. I'd like to know whether there is another way to cope with the problem.</p>
  
  <p>As you understand the solution must be Java based.</p>