Rotate PDF API

Rotate individual pages or entire documents by 90, 180, or 270 degrees. Useful for scanned documents, landscape pages, or mixed-orientation files.

Rotate pages precisely

Rotate individual pages or entire documents by 90, 180, or 270 degrees. Useful for scanned documents, landscape pages, or mixed-orientation files.

Automate with Zapier

Automatically rotate PDF pages from Google Drive files using our Zapier integration. Just drop your file into a folder, and Nutrient will adjust the orientation.

Simple and transparent pricing

Select a package that suits your needs according to the number of credits you wish to spend. Each API tool and action has a specific credit cost.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example will rotate all pages in the supplied document by 90 degrees.


Try it out in three steps

  1. Add a PDF named document.pdf to your project folder.
  2. Run the code from the same folder.
  3. Open result.pdf to see the output.
curl -X POST https://api.nutrient.io/build \
-H "Authorization: Bearer your_api_key_here" \
-o result.pdf \
--fail \
-F document=@document.pdf \
-F instructions='{
"parts": [
{
"file": "document"
}
],
"actions": [
{
"type": "rotate",
"rotateBy": 90
}
]
}'

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →


Security is our top priority

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR-compliant. See our privacy policy and security documentation for details on data handling.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.


Frequently asked questions

What is a PDF rotate API?

A PDF rotate API rotates pages within a PDF with a single API call. With Nutrient’s DWS Processor API, you can correct page orientation for single pages or an entire document without building your own PDF tooling.

How do I rotate PDF pages programmatically?

Send your PDF and the rotation you want to the Nutrient DWS Processor API, and it returns the rotated document. You can call it via REST, Postman, curl, JavaScript, Python, Java, C#, or PHP.

Can I rotate a single page or the whole PDF?

Yes. You can rotate an individual page, a range of pages, or every page in the document by the angle you specify.

Which programming languages does the API support?

You can call the API from any language that can make HTTP requests. We provide quick start examples for JavaScript, Python, Java, C# (.NET), and PHP, plus REST and a Postman collection.

Is there a free PDF rotate API?

Yes. You can start for free — sign up to receive processing credits and try the PDF rotate API before choosing a Processor API plan.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.