Compress large PDF to smaller using Adobe Acrobat Pro programatically...
I have an application that generates large PDF files which I need to compress using Adobe Acrobat Pro. Although I can reduce the file size using the “Reduced Size PDF” or “Optimized PDF” options, the process currently requires manual intervention.
I want to automate this workflow so that I can supply an input file name and have the PDF automatically compressed and saved to a specified destination.
I also tried using Guided Actions, but it still involves manual steps and does not provide full automation.
My questions are:
-
Is it possible to fully automate PDF compression in Adobe Acrobat Pro so it can be controlled programmatically (for example, using JavaScript)?
-
Can
trustedFunctionbe used for this purpose? -
Are there any sample code examples available?
