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

Form Field Recognition

ysegura
Registered: Feb 16 2011
Posts: 12
Answered

How can one be able to run (execute) "run form field recognition" via Javascript in Acrobat 8 or 9?
 

YS

My Product Information:
Acrobat Pro 8.1.7, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
You can run it through the execMenuItem command, but it has to be from a trusted folder-level script (or from the console). The actual code is:

app.execMenuItem("AcroForm:Forms_RunAutoDetect")

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

ysegura
Registered: Feb 16 2011
Posts: 12
Great!

Of course, after using
app.execMenuItem("AcroForm:Forms_RunAutoDetect")

the form opens the "Recognition Report" and stays in the form def showing all field discovered.

To complete and finish the process, how would you close the opened "Recognition Report" window and return to regular document normal viewing in acrobat?

YS

try67
Expert
Registered: Oct 30 2008
Posts: 2398
You have to do it manually.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com