Draw image on PDF.
POST/pdf/draw/image
Draw image on PDF.
Request
Header Parameters
- application/json
Bodyrequired
The PDF URL.
The PDF as a Base64-encoded buffer. Can be specified instead of url.
Whether the result PDF should be returned as a URL. Default is false.
trueThe URL of the image to draw.
T?he image as a Base64-encoded buffer. Can be specified instead of imageUrl.
The part of the page on which the image should be drawn. Default is center.
Possible values: [bottom-left, bottom, bottom-right, left, center, right, top-left, top, top-right]
centerThe part of the image that should be aligned with the specified position. Default is the value of anchor.
Possible values: [bottom-left, bottom, bottom-right, left, center, right, top-left, top, top-right]
centerThe horizontal offset in points relative to the anchor. Default is 0.
0The vertical offset in points relative to the anchor. Default is 0.
0The width of the image in points. This or height has to be provided. If only width is provided, height is calculated automatically.
200The height of the image in points. This or width has to be provided. If only height is provided, width is calculated automatically.
100The counter-clockwise rotation of the image in degrees. Default is 0.
45The pages the image should be drawn onto. Given as a range of pages, where 1 means the first page and ^1 means the last page.
The file name the result PDF will have. Default is a random ID.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
{}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
{
"status": 0,
"errorMessage": "string"
}