capabilities.work

Compress a PDF

A 4-step recipe with Adobe. We can help you get access.

Recipe · 4 steps

Compress a PDF

with Adobe

Reduce a PDF's file size with a chosen compression level.

  1. Request a pre-signed upload URI and asset ID for the source PDF, which is then PUT to the returned uploadUri out of band.
  2. Submit an asynchronous compressPDF job that reduces the uploaded PDF's size. Returns 201 with an in-progress job status.
  3. Poll the compressPDF job until it is no longer in progress, looping back while the status remains "in progress".
  4. Resolve a pre-signed download URI for the compressed output PDF.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token from Adobe IMS.
  • compressionLevel: Compression level (LOW, MEDIUM, or HIGH).
  • jobID: The job identifier taken from the compressPDF response Location header, used to poll status.
For your developer

Arazzo workflow adobe:compress-pdf, 4 operations: asset.uploadpresignedurl → pdfoperations.compresspdf → getJobStatus → getAsset. Specs on APIs.io.