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

Searching OCR in VBA

jason211
Registered: Feb 6 2007
Posts: 2

I am yet to find a definite answer on this so I will let the experts here give it a shot.
 
I have a access database with a list of pdf file paths in it. I am wondering if there is a way to programmatically do a boolean search on the OCR text and return the names of the files that have matches to Access.
 
If this is most easily done through an add in I am certainly open to that.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, you can use the "getPageNthWord" function through the JSO object to acquire text from a page. Look in the IAC reference for the PDDoc.GetJSObject function.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script