OptionalcustomDraws a custom watermark; the context uses page coordinates.
OptionaldiagonalText drawn along the page diagonal, with its style.
Optionaltext?: stringText to draw.
OptionalfooterText at the left, center and right of the bottom edge, with its style.
Optionalcenter?: stringText at the center of the bottom edge.
Optionalleft?: stringText at the left of the bottom edge.
Optionalright?: stringText at the right of the bottom edge.
OptionalheaderText at the left, center and right of the top edge, with its style.
Optionalcenter?: stringText at the center of the top edge.
Optionalleft?: stringText at the left of the top edge.
Optionalright?: stringText at the right of the top edge.
OptionalshouldDraws the watermark above annotations instead of below them.
View watermark (drawn on screen only, not written to the file; use Document.addWatermark for that): diagonal along the page diagonal, header / footer at left, center and right of the top and bottom edges, custom draws itself (page coordinates); with shouldDrawOverAnnotations true it is drawn above annotations