Rotate PDF pages.
POST/pdf/pages/rotate
Rotate PDF pages.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
urlstring
The PDF URL.
bufferstring
The PDF as a Base64-encoded buffer. Can be specified instead of url
.
getAsUrlboolean
Whether the result PDF should be returned as a URL. Default is false
.
Example:
true
rotatenumberrequired
Clockwise rotation of the pages in degrees. Must be a multiple of 90.
Example:
90
pagesstringrequired
The pages that will be rotated. Given as a range of pages, where 1 means the first page and ^1 means the last page.
Example:
1,3-5,^3-^1
fileNamestring
The file name of the result PDF. Default is a random ID.
Responses
- 200
- 400
Success
- application/json
- application/octet-stream
- Schema
- Example (auto)
Schema
urlstringrequired
The result PDF URL.
{
"url": "string"
}
- Schema
Schema
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}