# addtextwatermark2pdf: Add Text Watermark to PDF

> addtextwatermark2pdf (Add Text Watermark to PDF) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/addtextwatermark2pdf, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Writes a text watermark (e.g. CONFIDENTIAL, DRAFT) diagonally across the center of all or selected pages, with font size, color, opacity and angle. Returns the PDF. For an image watermark use files/addwatermark2pdf.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/addtextwatermark2pdf`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/addtextwatermark2pdf

## Parameters

- `file` (file, optional) – File: The PDF. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the PDF. Either file or fileUrl.
- `text` (string, required) – Text: Watermark text (Latin characters).
- `pages` (string, optional) – Pages: Pages, e.g. 1-3,7 (first page = 1). Empty: all pages.
- `fontSize` (number, optional, default `60`, min 4, max 400) – Font size: Default 60.
- `color` (string, optional, default `#808080`) – Color: Hex color, default #808080.
- `opacity` (number, optional, default `0.25`, max 1) – Opacity: 0 (invisible) to 1, default 0.25.
- `rotation` (number, optional, default `45`, max 360) – Rotation: Degrees counterclockwise, default 45.

## Example: Add Text Watermark to PDF

```bash
curl -X POST 'https://api.1001fx.com/files/addtextwatermark2pdf' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
