These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How can i know whether a pdf is searchable or not for image.

santhics
Registered: Apr 24 2008
Posts: 5

hi,

I am having a folder containg image pdf files.How can i know whether the pdf is searchable or not, through code.

My Product Information:
Acrobat Standard 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Use JavaScript to count the number of words on each page, this will count visible and invisible words. No words inidicates a non-searchable PDF.

From the Acrobat JS API Reference:

// count the number of words in a document
var cnt=0;
for (var p = 0; p < this.numPages; p++)
cnt += getPageNumWords(p);
console.println("There are " + cnt + " words on this page.");

George Kaiser