◆ Acrobat · organize

Rotate pages using an API or script

This scanned [document=lease] has pages upside down and needs a neat official copy by [deadline=Thursday]. Rotate the …

3ready prompts
1real task

When to use it

real situations

AI prompts

3 ways to ask · copy any one
AExecute — “help me do it”Show me how to use the Adobe PDF API to rotate...…+
Show me how to use the Adobe PDF Services API to rotate specific pages in a PDF file. The input file is [file name or URL], and the pages to rotate are [page numbers].
when the reply comes backWant to rotate pages in multiple PDFs at once?
BImprove — “do it better”Help me make my PDF rotation script faster and...…+
Help me make my script for rotating PDF pages with the Adobe PDF Services API faster and more reliable. Here is my current code: [paste code].
when the reply comes backNeed to rotate only odd or even pages automatically?
CDecide — “help me choose”Should I use Adobe PDF Services API or another...…+
Should I use the Adobe PDF Services API or another tool to rotate pages in PDFs for my project? My main needs are [list needs, e.g., speed, cost, integration].
when the reply comes backCurious how to combine rotation with other PDF edits?

How to do it

the tool · the steps · what to avoid
  1. 1

    Install Adobe Acrobat (not just Reader) and ensure JavaScript is enabled in preferences.

    CautionJavaScript automation requires the full Acrobat application, not Acrobat Reader.

  2. 2

    Open the target PDF in Acrobat.

  3. 3

    Open the JavaScript console by pressing Ctrl+J (Windows) or Cmd+J (Mac).

  4. 4

    Enter a JavaScript command such as: this.setPageRotations([pageIndex], rotationAngle); where pageIndex is zero-based and rotationAngle is 90, 180, or 270.

    Best practiceYou can rotate multiple pages by passing an array of page indices and corresponding rotation angles.

  5. 5

    Press Enter to execute the script and rotate the specified pages.

  6. 6

    Save the PDF to retain the rotation changes.

You can use the built-in JavaScript console in Acrobat to quickly rotate one or more pages programmatically.

Adobe PDF Services API offers the /rotatePages endpoint to programmatically rotate pages in a PDF via REST.

Glossary

words on this page
APIA way for different software to talk to each other automatically.ExampleAn online store uses an API to automatically send shipping details to a delivery service.
RotateTo turn something around a center point, like spinning a page.ExampleYou can rotate the image of the building to make it perfectly level on the page.
EndpointA web address your code sends requests to for a specific job.ExampleThe app sends your payment details to a secure endpoint on the server to process the transaction.

The real tasks

the one, listed here
I received a landlord-signed lease but pages 3–5 are rotated the wrong way.

FAQ

about this task

To rotate certain pages, you send a request to the API with the PDF file and tell it which page numbers to turn and by how many degrees (like 90, 180, or 270). The API then gives you a new PDF with those pages rotated.

An endpoint is the web address where you send your request to do a task, like rotating pages. For rotating, you use the PDF Services API endpoint that handles page transformations.

You can choose to rotate all pages or just specific ones. You tell the API which pages you want to rotate, so you have full control.

Rotating pages with the API is automated and works in code, so you can handle many files or add it to your app. Using Acrobat on your computer is manual and for one file at a time.

An API is useful when you have lots of files or want to build this feature into your own software, saving time and reducing mistakes compared to doing it manually.

Sources

where this comes from
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.
Built on public evidence: O*NET®, ESCO, Wikipedia, U.S. Bureau of Labor Statistics, forum demand signals.