Add PDF pages.
POST/pdf/pages/add
Add 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
widthnumber
The width of the pages to add. Default is the width of the first page.
Example:
595
heightnumber
The height of the pages to add. Default is the height of the first page.
Example:
842
pagesnumber[]required
The positions of the pages that should be added. Every number represents one page, and is the page number after which the new page should be added, e.g. 0 means inserting at the very beginning, while 10 means inserting after the 10th page.
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"
}