capabilities.work

PDF Compress and Cleanup

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

Recipe · 4 steps

PDF Compress and Cleanup

Compress an uploaded PDF, fetch the result, and delete the source asset.

  1. Create an upload asset for the source PDF, obtaining an asset ID and a presigned upload URI.
  2. Submit the compress-PDF job referencing the uploaded asset at the requested level. Responds 201 with a Location header for job status.
  3. Retrieve the presigned download URI for the compressed result asset once the job has completed.
  4. Delete the temporary source asset now that the compressed result has been retrieved.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token from the Adobe IMS token endpoint.
  • apiKey: Client ID (x-api-key) from the Adobe Developer Console.
  • compressionLevel: Compression level (LOW, MEDIUM, or HIGH).
  • resultAssetID: Asset ID of the compressed result asset to fetch a download URI for.
For your developer

Arazzo workflow adobe-creative-cloud:pdf-compress-and-cleanup, 4 operations: createAsset → compressPdf → getAsset → deleteAsset. Specs on APIs.io.