How to compress a PDF using Adobe Acrobat Pro?
I have an application which produces large PDF files that I need to compress using Adobe Acrobat Pro. While I am able to reduce the file size using the "Reduced Size PDF" or "Optimized PDF" options, the process currently requires manual steps.
I am looking for a way to automate this workflow. Specifically, I would like to provide an input file name and have the PDF automatically compressed and saved to a specified location.
I have also experimented with "Use Guided Actions", but this approach still requires manual interaction and does not fully automate the process.
My question is:
- Is there a way to fully automate PDF compression in Adobe Acrobat Pro so that it can be controlled programmatically (for example, via JavaScript)?
- Is it something trustedFunction works for this purpose?
- Are there any sample codes available for this purpose?
