As many of you know, in 2008 I posted an Applescript that will use Adobe Acrobat to make PDFs searchable using Acrobat’s OCR capabilities.
In the comments to that post, user nodis pointed out that adding 2 words to one of the lines can make the PDFs quite a bit smaller.
In my testing, I ran a 1.3 MB PDF through the script. Before nodis’ change, the resulting PDF was 1.7 MB. After the change, it was 424K!
Here is the updated script:
To use it:
- Download and uncompress the file and save it to your Desktop, Dock or wherever
- Drag one or more PDFs onto the icon
- Enjoy
Let me know how it works out for you and if you see similar reductions in file size.
Update: If you use Acrobat X, please see this post about OCR AppleScript for Acrobat X.
Related posts:














Will this only work with Acrobat 9? If so, is there an equivalent command for Acrobat 8? Thanks.
Hi John, sorry for the late reply. It should work fine for Acrobat 8. That's what I have.
The edited script should work with Acrobat 8 as well — but I don't have a copy installed to test. However, the extreme space savings will probably be seen only with Acrobat 9, which has a superb new OCR flavor as the default: ClearScan.
More about ClearScan here: <http://blogs.adobe.com/acrolaw/2009/05/better_pdf…
The revised droplet, plus ClearScan, are what add up to all the space savings with Acro 9.
Is there something comparable for Win 7?
Hi Chiphead, I'm not aware of a scripting language built into Windows 7. However, if what you're looking for is batch OCR'ing in Acrobat, maybe this post will help? http://www.documentsnap.com/use-acrobat-batch-pro…
Many thaks Brooks. I'll take a look. Appreciate your response.
Any chance this works in Acroboat 7 Pro?
I just upgraded to Acrobat X (10) and the script no longer works. If someone with some scripting know how could make a new new/updated OCR script droplet it would be MUCH appreciated. Thanks!
I am in the same boat. I am using Acrobat X now and the script no longer works. Any more thoughts on automating this?
Hi, I may have something for you. Please see this post: http://www.documentsnap.com/ocr-applescript-for-a…
Hi Brooks,
Thanks so much for this script. It worked beautifully for me under Snow Leopard, but since I upgraded to Lion I'm getting a lot of errors and Acrobat crashes. I'm not using Acrobat X – I'm still using Acrobat 9. Any ideas?
BTW, the error I get is "Connection is invalid -609"
This is going to sound weird, but can you try opening the PDF first in Finder, close it, then try running the script on it?
By open in Finder, I assume you mean double-click the PDF so it opens in Acrobat? I did that, and then closed Acrobat. Then dragged the PDF on top of the OCR-It script. Acrobat crashed, and I got the same -609 error.
Actually (please bear with me here), if you could right-click on the file, choose Open With, open it in Preview, and then close it, and then try dragging and see if that makes a difference.I don't know why this would be an issue but I came across a similar problem while Googling, so I want to see if that does the trick.
Thanks for helping me figure this out. I did as you suggested, and it didn't make a difference.
Brooks,
Anything else come to mind? Any alternatives? I'm really missing being able to use your script.