Skip to main content
Participant
February 2, 2022
Question

Trying to javascript a silent Reduce File Size save in Acrobat DC

  • February 2, 2022
  • 1 reply
  • 458 views

Hi there,

 

Does anyone know if its possible to automate a Reduce File Size save using javascript?

 

I've managed to get it to go as far as the dialogue box, but I was hoping there was the equivalent in Acrobat of the 'set user interaction to never' that you can script in INDD to supress these and silently save a reduced version over the original document. 

 

Alternatively saving a new file would be workable - then i could rename afterwards.

 

I'm not holding out much hope - Save As seems to be as scriptable as it gets from the hours I've spent on google, but I guess you never know until you ask...

 

All the best,

Ed

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 2, 2022

I think the only way to do that with a script is via the Preflight tool. Find or create a profile that optimizes the file and then run it using the preflight method of the Doc object.