MenuItemExecute("Cpt:CapturePages") only opens the dialog box that controls OCR. It doesn't automatically OCR the document.
Is there a way to programatically tell the dialog box that the CapturePages method opens to execute?
Capture is an Adobe product for advanced OCR workflows and comes with an automation SDK similar to Acrobats.
Did you happen to figured out how to automate the OCR process?
You can't. There are no APIs for this.
Is there a way to programatically tell the dialog box that the CapturePages
method opens to execute?
No. OCR is not exposed to automation.
Send keytstroke combinations to acrobat to manipulate OCR Dialog Box. Finish by sending TAB keystrokes to move to OK button and sending ENTER keystroke to start OCR Text Recognition.
Dim Acroapp As CAcroApp
Set Acroapp = CreateObject("AcroExch.App")
Acroapp.Show
Dim AVDOC As CAcroAVDoc
Set AVDOC = CreateObject("AcroExch.AVDoc")
dd = AVDOC.Open(Path, TempName)
Dim PDDoc As CAcroPDDoc
Set PDDoc = CreateObject("AcroExch.PDDoc")
Set PDDoc = AVDOC.GetPDDoc
'''''' SEND KEYSTROKES TO ACROBAT TO MANIPULATE OCR DIALOG BOX
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("2")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{ENTER}")
Acroapp.MenuItemExecute ("Cpt:CapturePages")
Let me know what you guys think...
Also, can you elaborate on the "Acrobat Capture programming interface" Bernd?