RTTSoftware Support Forum
PDF Explorer => General => Topic started by: Padanges on August 12, 2016, 01:44:42 PM
-
Hi,
is it possible to indicate whether the document is OCRed or not? Perhaps by using search for any matching string and getting no results? Any ideas? I am trying to populate my DB info fields by using your PDFe.
Regards.
-
If not having text is indicative of not being OCRed, within yours PDFs scenario, then you can use the next script function, to be used the same way as explained in your other post about existence of attachments (http://www.rttsoftware.com/forum/index.php/topic,537.0.html), to get this indication.
function HasText() {
for (var i = 0; i < BatchFile.Pages.count; i++) {
if (!!BatchFile.Pages(i).text) return 1
}
return 0;
}
-
It's indication whether the document is searchable, but that's in most cases is equivalent to being OCRed.
The script works. Thanks for help.