All functions
addWatermark
Adds a diagonal text watermark to every page of a PDF document. The watermark opacity is configurable. Returns the modified PDF as a base64-encoded string.
2 credits / 1 execution / request
Use cases
Confidential document sharing
Add DRAFT or CONFIDENTIAL watermarks before sharing sensitive PDFs. Useful for legal, HR, and contract documents to prevent unauthorized distribution.
Invoice and quote branding
Stamp "PAID" or "SAMPLE" on invoices and quotes. Helps distinguish final vs. preview documents in accounting and sales workflows.
Parameters
| Name | Type | Description | |
|---|---|---|---|
| organizationId | string | required | The ID of the organization making the request |
| pdfBase64 | string | required | The PDF file encoded as a base64 string |
| watermarkText | string | required | The text to use as the watermark |
| opacity | number | optional | Watermark opacity from 0 to 1. Defaults to 0.3 |
Response
| Name | Type | Description |
|---|---|---|
| pdfBase64 | string | The watermarked PDF encoded as a base64 string |