AG Studio Launch Week 🚀🚀🚀 28 Sep - 2 Oct 2026 🚀🚀🚀 Join now




Core Features

Advanced Features

JavaScript Data GridPDF Export - Watermarks

Version 36.2.0
Enterprise

PDF watermarks display translucent status text, such as DRAFT or CONFIDENTIAL, across the exported page content. Watermarks do not affect table measurement or pagination.

Adding Watermarks Copy Link

Set watermark.text in the PDF export parameters. The default watermark is centred on every page, rotated by -45 degrees, and rendered with low opacity.

const defaultPdfExportParams = {
    watermark: {
        text: 'DRAFT',
    },
};

The following example exports a multi-page report with a customised watermark:

  • opacity controls transparency from 0 to 1.
  • rotation controls the text angle in degrees.
  • pages can be 'all', 'first', 'odd', or 'even'.
  • style controls the text colour, font, size, weight, and other supported text properties.
const defaultPdfExportParams = {
    watermark: {
        text: 'DRAFT',
        opacity: 0.12,
        rotation: -45,
        pages: 'all',
        style: {
            color: '#6b7280',
            fontSize: 92,
            fontWeight: 'bold',
        },
    },
};

The watermark is marked as a PDF artefact, so assistive technologies do not announce it as document content on every page.

Known Limitations Copy Link

  • Watermarks support text only. Image watermarks are not supported.
  • One watermark configuration can be applied to an export.

API Copy Link

Export Options Copy Link

See below the functions on the PdfExportParams interface to customise exported grid values.

watermarkCopy Link
PdfWatermark
A text watermark rendered across the content of selected pages.

PdfWatermark Copy Link

Properties available on the PdfWatermark interface.

string
Text displayed diagonally across the exported page content.
opacityCopy Link
number
default: 0.12
Text opacity from 0 (transparent) to 1 (opaque).
rotationCopy Link
number
default: -45
Rotation in degrees.
PdfWatermarkPageSelection
default: 'all'
Pages on which the watermark is rendered.
PdfTextStyle
Text styling for the watermark.