Don't know where to start on this really
I have a linux server with over 8000 PDf's and need to know which PDF's have been ocr'd and which one's haven't.
Was thinking some sort of script calling XPDF to check the pdf but to be honest not sure if this is possible
Thanks in advance for any help
Make sure you have a commandline tool
pdffonts
installed. (There are two versions of this: one ships as part of thexpdf-utils
, the other as part of thepoppler-utils
.)All PDFs which consist of scanned pages only will not have any fonts used (neither embedded ones, nor un-embedded ones).
The commandline
will then not show any font information for that file.
This may already be enough for you to separate your files into two different sets.
If you have PDFs which have a mix of scanned pages and "normal" pages (or sanned-and-ocr'ed pages) then you'll have to extend and refine the above simplistic approach. See
man pdffonts
orpdffonts --help
for more info.