These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Batch optimizing a folder of PDFs

JustinJ
Registered: Aug 22 2007
Posts: 6

I have a few hundred documents scanned in PDF form (in greyscale and color formats), and would like to reduce the size and optimize by batch processing. I understand basically how to script a doc.saveAs for each file. My code just runs a loop on every file >20mb and resaves them now, and I would like to add the step to optimize and reduce size. Would I be able to implement the Optimize and/or Reduce Size functions for each PDF in the loop?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There is not access to the Optimizer from Acrobat JavaScript. You can however run the Optimizer from a Batch Process. I would suggest that you build a Batch Sequence that runs Optimizer.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

JustinJ
Registered: Aug 22 2007
Posts: 6
Great! That worked perfectly, thank you.
k.seyedmehdi
Registered: Nov 24 2007
Posts: 1
Why is there no access to the Optimizer from Acrobat Javascript?

Is this supported in an other product?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Don't know. Probably just wasn't important enough to make the feature list.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

danny28
Registered: Oct 28 2009
Posts: 2
I go under the batch processing but I do not see anything for the optizimer on there. I have 7 pro does that make a differance?
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Have you tried the 'Output Options' button on the Edit Sequences page?

You will have to create a new sequence or edit a sequence to get to this page. You can use the "Open Options" and leave all settings unchanged.

George Kaiser

alan-31
Registered: Jun 18 2010
Posts: 4
The PDF optimizer is available in the batch process however "Optimize Scanned PDF" unfortunately is not. The optimizer does not do the same job as "Optimize scanned PDF" does. It reduces the document's size by a large amount, sometimes even 10 fold so of course its an important feature. Its shocking that Adobe forgot to include it in batch options. This is a big blunder on their part. Everyone on the internet is facing the same problem.
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You can tune or adjust the PDF Optimizer but not in the Batch processor. Not only do the 2 task have different names, but they perform different task. The Optimize Scanned PDF have controls to adjust for item very unique to images like 'De-skew' which will straighten a crooked image. This will align the text for easier OCR-ing of the text. This is not needed in a computer document. The Optimize PDF function reduces various stored data about the PDF to reduce or modify its size and remove unnecessary meta data, add or remove font data for text, modify the compression of images.

You can see this by looking at the dialog presented for each menu option.

OCR-ing also requires one to resolve illegible text images to text because the software can not sort it out.

George Kaiser

alan-31
Registered: Jun 18 2010
Posts: 4
We can adjust the Optimizer in the batch process:
Document processing -> Batch processing -> Edit sequence (whatever sequence you have or make a new one) -> Output options -> Settings for Optimizer
Yes you're right, those two tasks do different jobs.

I have searched over the internet and I found SO many people being disappointed about not finding the "Optimize Scanned PDF" as an option in Batch processing. That was the point of the first post I made above. You can also see the original poster had "scanned" documents so yea. I dont know why Adobe did not enable this option. Its shocking.

I have sent them a feature request. I've tried to play with the Optimizer and the Preflight, no success.