> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dockiln.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a watermark

> Overlay text or a supplied PNG or JPEG on every page of a generated PDF.

## Mark a review copy

On a 1.1 build, send this body to [POST /v1/documents](https://docs.dockiln.io/api-reference/queue-generation.md). After downloading the PDF, inspect both pages for the same diagonal review mark.

```json theme={null}
{
  "html": "<h1>Site survey</h1><p>Building A</p><section style='break-before:page'><h1>Appendix</h1><p>Building B</p></section>",
  "processing": {
    "watermark": {
      "text": "REVIEW COPY",
      "size": 44,
      "opacity": 0.22,
      "rotate": 30,
      "position": "center"
    }
  }
}
```

## Choose an image or text

Set exactly one of `text` or `image`. Text accepts up to 100 printable ASCII characters. For an image, use a PNG or JPEG Base64 data URL, up to 240,000 characters. PNGs are limited to two megapixels. The worker places the overlay on each PDF page.

`size` is 4–256 points and controls the font size or image width. Set `opacity` from 0 to 1 and `rotate` from −180 to 180 degrees. Supported placements are `center`, `top-left` and `bottom-right`. For an opening password or reader permissions, use [PDF protection](https://docs.dockiln.io/misc/protection.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.