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

How to set the values for "Recognize Text Using OCR"

prabudass
Registered: Aug 14 2008
Posts: 71
Answered

I have found the way to open the plugin menu "Documents-->OCR Text Recognition-->Recognize Text Using OCR" through javascript.

Now i have to select the settings and set the values like the below options:

1.Primary OCR Language : English (US)
2.Pdf Output StyLe : Formatted Text & Graphics
3.Down Sample Images : Lowest (600 dpi)

which are listed in the "EDIT" menu of the "Recognize Text" form, and also to activate the "OK" button. Is it possible to do the above through Java Script. Please kindly provide any samples.

Thanks,
Prabudass

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can't. The Acrobat JavaScript model does not currently have access to those features.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.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

prabudass
Registered: Aug 14 2008
Posts: 71
Thanks for your response. Is it possible through programmatically using other software? If possible means, kindly provide any samples.

Thanks,
Prabudass
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you are on windows, you can get softwar that simulates keystrokes and mouse clicks. This is one way to automate Acrobat. Build a VB program using the Acrobat IAC. The IAC is a way of connecting another application to Acrobat. Use if for opening PDFs and running the OCR Menu item. Then use the mouse/key simulator to fill in the properties you need.

I've never tried this before so I can't tell you any specifics. But I do know that other poeple have gotten it to work.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.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

prabudass
Registered: Aug 14 2008
Posts: 71
Could you please explain little more about "VB program using the Acrobat IAC" with examples.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can download the Acrobat IAC documentation from here

http://www.adobe.com/devnet/acrobat/

The IAC is a way to control Acrobat from an external application. On Windows it's best used from an application built with Visual Basic.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.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