1

I'm working on an automation project which requires me to recognize text in scanned pdfs(images).I need to write a code in python which converts the entire PDF(scanned) into readable PDF using recognize text function in Acrobat Pro DC.

I've written the following code in python so far:

avDoc = Dispatch("AcroExch.AVDoc")
pdDoc = avDoc.GetPDDoc()
app = Dispatch("AcroExch.App")
app.MenuItemExecute("Cpt:CapturePages")

This opens up the pdf and takes me to the screen containing the 'recognize text' button. How can I click that button and have my desired output?

Prabal
  • 51
  • 1
  • 6

0 Answers0