Skip to main content
The watermark object is an instance accessible from the main MuPDFWebViewer instance as follows:
This assumes you have returned your instance name as webViewer from the initMuPDFWebViewer() promise!

watermark

The watermark object has the following methods:

create

Parameters

object
required
An object containing an array of text or image watermarks.

Returns

Promise<undefined>
required
A Promise.
Example

Supporting Types

WatermarkAlignment

TextWatermark

ImageWatermark