Skip to main content
Participant
April 14, 2020
Question

Reducing image resolution using actions

  • April 14, 2020
  • 1 reply
  • 309 views

I am creating a set of sequential actions to perform on my PDFs. Things like:

1. Adding a Watermark

2. Optimizing PDF to reduce the resolution of the images

3. Flattening the file

4. Securing with a pwd to prohibit editing

5. Sanitizing

etc...

 

While all other actions work just fine, the optimize PDF doesnt seem to work. Does anybody know how to reduce the resolution to a specific ppi value for all the images in the PDF? If I go to "File/Save as other/Optimized PDF/" it lets me choose the downsample rates etc. Is there a way to add this procedure to an action? 

 

I want to be able to click on one button and run all (above mentioned) actions together for any given PDF. While all other actions worked fine, I couldnt figure out a way to downsample the images automatically.

 

Appreciate your help

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
April 15, 2020

You can use a preflight option for this.  In fact, you can create your own custom preflight option, which can then be called by the Action. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often