Rotate selected pages of a PDF
POST/api/v1/tools/rotate
Rotate specific pages of a PDF by 90, 180 or 270 degrees.
The pages specification is validated using the same rules as the
pages tool. The request will be rejected with a 400 Bad Request
and a descriptive error message if a page spec is syntactically
invalid, a range has a descending end (e.g. "5-2"), a page number
is outside the valid range of the document, or if the same page is
selected more than once via overlapping specs (e.g.
"1-3,2-4" will yield
"Duplicate page selection detected for page 2").
The referenced input must be a PDF. DOCX and other file types are rejected with a 400 error.
File lifecycle: The input file in the input bucket is deleted
after a successful operation.
Request
Responses
- 200
- 400
- 401
- 402
- 500
Rotated PDF returned as binary response
Bad request
Unauthorized
Insufficient tokens
Internal server error