Resize PDF pages.
POST/pdf/pages/resize
Resize 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
widthnumberrequired
The new width in points.
heightnumberrequired
The new height in points.
pagesstringrequired
The pages that should be resized. 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"
}