Get Started
Usage API

InsertWatermark

InsertWatermark([sText], [bIsDiagonal])

Insert watermark on each page of document

Parameters:

Name Type Default Description
sText string "WATERMARK"
bIsDiagonal boolean true

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("A watermark was inserted into this document.");
oDocument.InsertWatermark("Watermark");
builder.SaveFile("docx", "InsertWatermark.docx");
builder.CloseFile();

Resulting document