RemoveWatermark

RemoveWatermark()

Removes a watermark from the current document.

Parameters:

This method doesn't have any parameters.

Returns:

This method doesn't return any data.

Example

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

Resulting document