Draw a watermark text inside the PDF.
POST/pdf/watermark/text
Draw a watermark text inside the 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.
true
Repeats the text across the entire specified range of the PDF. Default is false
true
The text to draw.
Hello, world!
The font to use. Default is Helvetica.
Possible values: [Helvetica
, Courier
, TimesRoman
]
Helvetica
The part of the page on which the text should be drawn. Default is center
.
Possible values: [bottom-left
, bottom
, bottom-right
, left
, center
, right
, top-left
, top
, top-right
]
center
The part of the text 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
]
center
The horizontal offset in points relative to the anchor. Default is 0.
0
The vertical offset in points relative to the anchor. Default is 0.
0
The space between each text. It only applies if repeat is true. Default is 0.
45
The counter-clockwise rotation of the text in degrees. Default is 0.
45
The font size in points. Default is 32.
32
The font color as a six-digit hexcode, i.e. RRGGBB. Default is 000000, i.e. black.
FFFF00
The pages the text should be drawn onto. Given as a range of pages, where 1 means the first page and ^1 means the last page. Default are all Pages.
1,3-5,^3-^1
The opacity of the text. Must be between 0 and 1. Default is 1
0.5
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"
}