OptionalcolorText color '#rrggbb'. Defaults to gray '#808080'.
OptionalfontFont name. Defaults to 'Helvetica'.
OptionalfontFont size in points. Defaults to 48.
OptionalfrontWhether the watermark is drawn over the page content. Defaults to true.
OptionalhorizontalHorizontal alignment on the page. Defaults to 'center'.
OptionalhorizontalHorizontal offset in PDF points. Defaults to 0.
OptionalimageWatermark image as RGBA pixels (an ImageData works). Give either this or text.
RGBA pixel data, 4 bytes per pixel.
Image height in pixels.
Image width in pixels.
OptionalopacityOpacity from 0 to 1. Defaults to 0.5.
OptionalpagesPage numbers (1-based) to apply to; all pages by default.
OptionalrotationRotation in degrees. Defaults to 45.
OptionalscaleScale factor. Defaults to 1.
OptionaltextWatermark text. Give either this or image.
OptionaltilingTiles the watermark over the whole page with this spacing in PDF points.
Horizontal space between tiles.
Vertical space between tiles.
OptionalverticalVertical alignment on the page. Defaults to 'center'.
OptionalverticalVertical offset in PDF points. Defaults to 0.
Watermark written to the file: either text or image (RGBA pixels, ImageData works); color '#rrggbb' (gray by default), opacity 0–1 (0.5 by default), rotation in degrees (45 by default); front true by default (over the content); with tiling, tiled over the whole page; pages are page numbers (all by default)