Click or drag to resize

PdfDocumentWatermarkAllPages Method

Watermarks all pages of this PDF with HTML content.

Watermarks are restricted to basic positioning and a 100mm by 100mm maximum size. For more advanced options see StampHTML(HtmlStamp)

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.9.15720 (4.4.9.0)
Syntax
public void WatermarkAllPages(
	string Html,
	PdfDocumentWaterMarkLocation Location = PdfDocumentWaterMarkLocation.MiddleCenter,
	int Opacity = 100,
	int Rotation = 0,
	string Hyperlink = ""
)

Parameters

Html
Type: SystemString
The HTML fragment
Location (Optional)
Type: IronPdfPdfDocumentWaterMarkLocation
The location of the watermark. PdfDocumentWaterMarkLocation
Opacity (Optional)
Type: SystemInt32
The opacity of the watermark from 0-100%. 100 is opaque, 0 is invisible.
Rotation (Optional)
Type: SystemInt32
The rotation of the watermark content in clockwise degrees.
Hyperlink (Optional)
Type: SystemString
An optional hyperlink which the watermark will link to.
See Also