Copy link to clipboard
Copied
I'm working on an automation project which requires me to read the contents of the pdf. Some pages have partial content in the form of readable content(PDF) whereas partial content is in the form of scanned images. I need to write a code in python/VBA/VB.Net using any of the inbuilt functionality of Pro DC such as API, functions or commands. One such I came across named as AVDocSaveOptimized but I am not sure whether it optimizes scanned pages or not? If anyone can help in anyway or if someone has a direct code to do so?
Copy link to clipboard
Copied
Is this for a server? acrobat is a personal tool with some very light duty interactive automation.
Copy link to clipboard
Copied
No, not for a server. Any help?
Copy link to clipboard
Copied
I can tell you the method you mentioned does not do OCR. You need to use the AVCommand API, which is very poorly documented.
Copy link to clipboard
Copied
I am already using the AV Command API.
LeT me give you my precise piece of code so that you may be able to help me in a better way.
Last 2 lines of code in python:
avDoc1 = Dispatch("AcroExch.App")
scanok=avDoc1.MenuItemExecute("Cpt:CapturePages")
Now, when I run this code, it opens up the Pro DC and lands on the specific page where I have the button "recognize text". All I need to do is just write some more line of command which will help me to shift the command to this button and press it so that this operation(recognizing text) gets started and I have the desired output pdf file directly opened.
OR
If you can tell me precisely which command to use in AV Command API to operate recognize text button, it will be a really great help which will solve my problem.
Copy link to clipboard
Copied
That is not the AVCommand API. It is not even a plug in! You will not use one API but a number of them, after research into names and settings. Expect at least a month of study and experiment if you are an experienced C programmer.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now