Text Watermark PDF API

Apply text watermarks to PDF pages with control of font, size, color, stroke, opacity, rotation, position, links, and page ranges.

Watermark Tools

Text Watermark PDF API Overview

Add professional text watermarks to PDF pages with granular styling and placement controls. Choose the text and font family, embed or subset fonts, set size, fill and stroke colors with stroke width, and pick the rendering mode. Adjust opacity and rotation, position the watermark within page or crop box, and target specific pages or ranges. Optionally attach a link or a go‑to page action and preserve or update PDF metadata as needed. Designed for automation, the API produces consistent, branded results across batches without manual editing.

Lightning Fast Conversions

Process and convert files in seconds with our high-performance cloud infrastructure.

Accuracy Guaranteed

Our advanced algorithms ensure pixel-perfect and content-accurate file conversions.

Enterprise-Grade Security

ISO 27001, HIPAA, and GDPR compliant with encrypted file processing.

Global Infrastructure

Strategically located servers ensure low latency and high availability worldwide.

Developer Friendly

Comprehensive SDKs and clear documentation for quick and simple integration.

Time-Saving Automation

Automate repetitive document workflows and focus on what matters most.

Customizable Parameters

Fine-tune your automation with these powerful conversion options

File

File Supported formats: .pdf

File to be converted. Value can be URL or file content.

Password

String

Sets the password to open protected documents.

PageRange

String Default: 1-2000

Set page range. Example 1-10 or 1,2,5.

Text

String

Specifies the text to use as watermark. The list of supported variables:

  • %PAGE% - current page number
  • %PAGES% - total number of pages
  • %FILENAME% - name of the file
  • %WEEKDAY% - full weekday name
  • %WEEKDAY_SHORT% - abbreviated weekday name
  • %MONTH% - month number (1-12)
  • %MONTHNAME% - full month name
  • %MONTHNAME_SHORT% - abbreviated month name
  • %YEAR% - year with century (YYYY)
  • %YEAR_SHORT% - year without century (YY)
  • %DAY% - day of month
  • %DAY_YEAR% - day of the year (1 -366)
  • %HOUR% - hour (01- 12)
  • %HOURS% - hour (00-23)
  • %MINUTES% - minutes (00-59)
  • %SECONDS% - seconds (00-59)
  • %AMPM% - AM PM
  • %DATE% - local date representation
  • %TIME% - local time representation
  • %DATETIME% - local date and time
  • %AUTHOR% - document Author
  • %TITLE% - document Title
  • %SUBJECT% - document Subject
  • %KEYWORDS% - document Keywords
  • %N% - new line

Style

Collection Default: stamp

Specifies watermark style, stamp or watermark. The stamp is placed over page content and watermark under page content.

Values:   stamp watermark

FontSize

Integer Default: 40

Specifies the watermark font size.

Range:   1 .. 200

TextRenderingMode

Collection Default: fillstroke

Specifies the text rendering mode.

Values:   filltext stroketext fillstroke invisible

FontColor

Color

Specifies the watermark font color.

StrokeColor

Color

Specifies font stroke color.

StrokeWidth

Integer Default: 1

Specifies the stroke width.

Range:   0 .. 200

FontName

Collection Default: arial

Specifies the watermark font name. Contact us if you are looking for a specific font for a watermark that is missing from the list.

Values:   arial bahnschrift calibri cambria consolas constantia courierNew georgia tahoma timesNewRoman verdana

Rotate

Integer Default: 0

Specifies the watermark rotation angle in degrees.

Range:   0 .. 360

Opacity

Integer Default: 100

Specifies watermark opacity level.

Range:   0 .. 100

GoToLink

String

Specifies the web address to go when the watermark is clicked.

GoToPage

String

Specifies the page number to go when the watermark is clicked.

LineSpacing

Integer Default: 0

Specifies the watermark text line spacing.

Range:   -30 .. 30

PageBox

Collection Default: mediabox

Specifies the PDF page box used as the reference area for applying the watermark.

Values:   mediabox trimbox bleedbox cropbox

HorizontalAlignment

Collection Default: center

Specifies the horizontal watermark alignment.

Values:   left center right

VerticalAlignment

Collection Default: center

Specifies the vertical watermark alignment.

Values:   top center bottom

MeasurementUnit

Collection Default: pt

Measurement unit for position and size parameters.

Values:   pt in mm cm

OffsetX

Double

Specifies the watermark offset along the X-axis. Positive values move the watermark to the right, while negative values move it to the left, using the selected MeasurementUnit.

Range:   -10000 .. 10000

OffsetY

Double

Specifies the watermark offset along the Y-axis. Positive values move the watermark downward, while negative values move it upward, using the selected MeasurementUnit.

Range:   -10000 .. 10000

Width

Double Default: 0

Specifies the width of the watermark text box in the selected MeasurementUnit. A value of 0 means the width is unspecified.

Range:   0 .. 10000

Height

Double Default: 0

Specifies the height of the watermark text box in the selected MeasurementUnit. A value of 0 means the height is unspecified.

Range:   0 .. 10000

FontEmbed

Bool Default: True

Specifies whether fonts should be embedded.

FontSubset

Bool Default: True

Specifies whether fonts should be subset.

StoreFile

Bool Default: False

When the StoreFile parameter is set to True, your converted file is written to ConvertAPI’s encrypted, temporary storage and made available via a time-limited secure download URL, valid for up to 3 hours. After this period, the file is permanently deleted.

When StoreFile is set to False, conversion happens entirely in-memory. The raw file bytes are streamed back in the API response without touching disk or external storage, ensuring maximum security and zero persistence so that only you can access the content.

Integrate within minutes

Easy Text Watermark PDF automation using our simple REST-API

Try the Text Watermark PDF conversion online

Try it Free

Businesses trust us

Highest rated File Conversion API on major B2B software listing platforms: Capterra, G2, and Trustpilot.

"ConvertAPI has been a game-changer for our document automation workflows. Their conversion accuracy and API reliability are unmatched in the industry for over 7 years."

"ConvertAPI is a reliable, cost-effective solution with a proven track record of stability. It has grown significantly in maturity, adopting enterprise-grade practices over the years."

"We've integrated ConvertAPI across our entire document processing platform. The performance is exceptional and the support team is always responsive. Highly recommended!"

Enterprise-Grade Security

We ensure that all document processing is handled securely in the cloud, adhering to industry-leading standards like ISO 27001, GDPR, and HIPAA. To enhance security even further, we can ensure that no files or data are stored on our servers and never leave your country.

Learn more about security

Ready to Streamline Your File Conversions?