This scanned [document=lease] has pages upside down and needs a neat official copy by [deadline=Thursday]. Rotate the …
Install Adobe Acrobat (not just Reader) and ensure JavaScript is enabled in preferences.
CautionJavaScript automation requires the full Acrobat application, not Acrobat Reader.
Open the target PDF in Acrobat.
Open the JavaScript console by pressing Ctrl+J (Windows) or Cmd+J (Mac).
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.
Press Enter to execute the script and rotate the specified pages.
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.
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.