Every [event=audit] forces me to manually compress and reconcile archives. I want a repeatable delivery method that pr…
Acrobat Pro / Acrobat SDK
Install Adobe Acrobat Pro and the Acrobat SDK on your development machine.
Write a script in JavaScript for Acrobat (Acrobat JavaScript) or use a supported language via the Acrobat Interapplication Communication (IAC) API.
Best practiceUsing Acrobat JavaScript is best for simple automation, while IAC is preferred for integrating with external applications.
Open the target PDF using your script by referencing the file path.
Invoke the 'doc.saveAs' method with the 'com.adobe.acrobat.reducedSize' conversion parameter in Acrobat JavaScript, or use the 'SaveAs' method with the 'PDFSaveFull' or 'PDFSaveReducedSize' flags if using IAC.
CautionThe 'reducedSize' option may not achieve the same results as the full 'Optimize PDF' UI feature.
Specify the output file path for the reduced-size PDF.
Execute the script to save the reduced-size PDF.
You can manually reduce PDF size in Acrobat by using the Save As Reduced Size PDF feature from the File menu.
The Acrobat JavaScript API provides the 'doc.saveAs' method with the 'com.adobe.acrobat.reducedSize' conversion parameter for programmatic PDF size reduction.
You can use the Acrobat API's PDF Services to send your PDF file to a special endpoint that compresses it and returns a smaller version. This is done by making a request from your code, so you don't need to open Acrobat manually.
PDF compression means making the PDF file smaller by removing unnecessary data, lowering image quality, or optimizing how the content is stored. When you use an API, this process happens automatically in the background.
Yes, the Acrobat API often lets you choose different compression levels or settings. You can pick a balance between file size and quality, depending on what you need for your project.
Using the Acrobat API lets you automate the process, so you can compress many PDFs quickly and without mistakes. It's also helpful if you want to add this feature to an app or workflow.
The Acrobat API is made by Adobe and is meant for developers to use in their code. Unlike desktop tools, it works online and can be used inside apps or automated systems, making it more flexible for programming tasks.