RenderOptionsWatermark Property
The page watermark.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.5
Syntax
public Watermark Watermark { get; set; }

Property Value

Type: Watermark
The watermark.
Examples
The following example demonstrates how add watermark when rendering the document.
C#
ViewerConfig config = new ViewerConfig();
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = @"C:\storage\document.doc";

Watermark watermark = new Watermark("This is a watermark text");
watermark.Color = System.Drawing.Color.Blue;
watermark.Position = WatermarkPosition.Diagonal;
watermark.Width = 100;

ImageOptions options = new ImageOptions();
options.Watermark = watermark;

List<PageImage> pages = imageHandler.GetPages(guid, options);
See Also