Skip to content

modern-pdf-lib


modern-pdf-lib / addWatermark

Function: addWatermark()

addWatermark(doc, options): void

Defined in: src/core/watermark.ts:170

Add a watermark to all pages in a document.

Parameters

doc

PdfDocument

The PDF document.

options

WatermarkOptions

Watermark options.

Returns

void

Released under the MIT License.