capabilities.work

Rotate Pages In a PDF

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

Recipe · 4 steps

Rotate Pages In a PDF

with Adobe

Rotate a range of pages in an uploaded PDF.

  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 rotatePages job that rotates the requested page range of the uploaded PDF. Returns 201 with an in-progress job status.
  3. Poll the rotatePages 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 rotated output PDF.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token from Adobe IMS.
  • startPage: First page of the range to rotate (1-based).
  • endPage: Last page of the range to rotate (1-based, inclusive).
  • rotation: Rotation angle in degrees clockwise (90, 180, or 270).
  • jobID: The job identifier taken from the rotatePages response Location header, used to poll status.
For your developer

Arazzo workflow adobe:rotate-pages, 4 operations: asset.uploadpresignedurl → rotatePages → getJobStatus → getAsset. Specs on APIs.io.