Class Watermark

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

Text or an image drawn semi-transparently over the centre of every page when the document is saved. Assign it to Watermark.

public abstract class Watermark
Inheritance
Watermark
Inherited Members

Examples

document.Watermark = Watermark.Text("DRAFT", StandardFont.HelveticaBold, 120, PdfColor.Red, angle: 45, opacity: 0.15);

Remarks

The watermark is centred on each page's crop box (or media box), and is also applied to imported pages.

Properties

Angle

Rotation in degrees, counter-clockwise.

Opacity

Opacity from 0 (invisible) to 1 (opaque).

Methods

Image(PdfImage, double, double, double)

Creates an image watermark, such as a logo or a "confidential" stamp.

Text(string, PdfFont, double, PdfColor?, double, double)

Creates a text watermark.