Skip to content
Browse all functions

Add Text Watermark to PDF

files/addtextwatermark2pdf

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.

3 credits per callHTTP APIMake

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.

Endpoint

POSThttps://api.1001fx.com/files/addtextwatermark2pdf
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • filefileoptional

    The PDF. Either file or fileUrl.

  • fileUrlstringoptional

    Public URL of the PDF. Either file or fileUrl.

    Example:
    https://api.1001fx.com/testdata/3pages.pdf
  • textstringrequired

    Watermark text (Latin characters).

    Example:
    CONFIDENTIAL
  • pagesstringoptional

    Pages, e.g. 1-3,7 (first page = 1). Empty: all pages.

    Example:
    1-2
  • fontSizenumberoptional

    Default 60.

    Default:
    60
    Min:
    4
    Max:
    400
  • colorstringoptional

    Hex color, default #808080.

    Default:
    #808080
  • opacitynumberoptional

    0 (invisible) to 1, default 0.25.

    Default:
    0.25
    Max:
    1
  • rotationnumberoptional

    Degrees counterclockwise, default 45.

    Default:
    45
    Max:
    360

Examples

Add Text Watermark to PDF

Add Text Watermark to PDF

Input

Expects multipart/form-data or a json body
{
  "fileUrl": "https://api.1001fx.com/testdata/3pages.pdf",
  "text": "CONFIDENTIAL",
  "opacity": 0.2
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/addtextwatermark2pdf' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'

Try addtextwatermark2pdf now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created