---
title: "Add a diagonal text watermark"
method: POST
path: "/pdf/watermark"
tags: ["PDF"]
---

# Add a diagonal text watermark

`POST /pdf/watermark`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/pdf/watermark`
- Auth: none declared

Stamps the given text diagonally across every page.

## Request body

- object
  - `file` object, required
    - `base64` string: Base64-encoded PDF (data URIs ok)
    - `url` string: Public URL of a PDF (fetched server-side)
  - `text` string, required
  - `opacity` number
  - `fontSize` number
  - `color` string: #rrggbb

## Response `200`

Default Response

- object
  - `pdfBase64` string
  - `pageCount` number

## Other responses

- `400`: Bad input
- `413`: Too large
- `502`: Upstream fetch failed
- `504`: Upstream timed out

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
