Skip to main content
Participating Frequently
June 12, 2021
質問

Acrobat Javascript OCR Example

  • June 12, 2021
  • 返信数 3.
  • 3918 ビュー

I am looking for a Javascript example that executes OCR on a scanned document. I am having trouble finding the document methods that perform that and other Acrobat actions on a PDF document.

 

Thanks

このトピックへの返信は締め切られました。

返信数 3

JR Boulay
Community Expert
Community Expert
June 20, 2021

Yes, but this is a setting that is well hidden (and not available for PNG and JPEG formats): 

 

Acrobate du PDF, InDesigner et Photoshopographe
rjabend作成者
Participating Frequently
June 20, 2021

Is it ever lol, but it also appears it can be set for many file formats other than tiff. Thanks again!

gary_sc
Community Expert
Community Expert
June 20, 2021

It appeared under BMP scanned optimization preferrences that OCR was possible. Thoughts? 


Ah, well that adds to my education.

 

As a Mac user, BMP are kinda irrelevant so I'd not have thought to even look to see what options they provide. So my bad.

 

So yes, TIFs and BMPs (the latter for the PC inclined :>))

 

Thank you!

gary_sc
Community Expert
Community Expert
June 12, 2021

Hi rjabend,

 

I am sorry but I do not do any scripting so I cannot answer your question. HOWEVER, if you scan a document and save it as a png, or jpg, after converting that document to a PDF, you then have to go do an extra step to do the OCR process. On the other hand, if you save that document as a TIF, when opening that document in Acrobat, it will convert the document to a PDF AND also self-initiate the OCR process.

 

Just a small tip that might help you.

rjabend作成者
Participating Frequently
June 12, 2021

Nice tip! I was not aware of that. Thanks!

Legend
June 12, 2021

There is no guarantee that JavaScript offers all the features of Acrobat. So you will find countless things you can only do manually.

rjabend作成者
Participating Frequently
June 12, 2021

Can OCR be executed in Javascript? I am not looking for a "guarantee", just whether or not it is possible.

try67
Community Expert
Community Expert
June 12, 2021

No.