About this endpoint
What it does
Uploads a PDF file, applies a watermark to it, and returns the watermarked PDF as a downloadable binary file.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | PDF file to watermark. |
| output | String | No | Output filename stem without extension. Defaults to output. |
| watermark_text | String | No | Watermark text rendered on every page. At least one of watermark_text or watermark_image is required. |
| watermark_image | String | No | PNG image scaled to fit each page as a watermark. |
Response
Returns a binary file containing the watermarked PDF. The output schema is a single binary string, so the success response is a downloadable file rather than a JSON object.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| binary response | String | Yes | Watermarked PDF file content returned as binary data. |