• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reducing image resolution using actions

New Here ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript

Views

195

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2020 Apr 15, 2020

Copy link to clipboard

Copied

LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines