Skip to end of metadata
Go to start of metadata
Contents Summary

The code samples in this article use some of the methods defined in Working with Common Utilities.

Adding Watermark to all Pages of a Particular Type

Using GroupDocs.Watermark, you can add watermark to all pages of a particular type in a document. It consists of following steps.

  1. Load the document
  2. Create and initialize watermark object
  3. Set watermark properties
  4. Add watermark by specifying page type
  5. Save the document

Following code sample shows how to add watermark to a particular type of the pages.

Adding Watermark on Separate Background Page

In some cases, you may want to place the watermark on separate newly created background pages. In this case, following code sample serves this purpose.

Add Watermark to a Particular Page

GroupDocs.Watermark allows you to add watermark to a particular page of the document as shown in below code sample.

Adding Locked Watermark

GroupDocs.Watermark also allows locking the added watermark to forbid the user from editing. The setLocked method of DiagramShapeSettings class is used for this purpose. The following code sample shows how to lock a watermark.

Getting Information about Diagram Pages

GroupDocs.Watermark enables you to access all the information about the diagram pages. The following code sample shows how to extract information about all the diagram pages in a Visio document.

Adding Watermark to all Images of a Particular Page

Using GroupDocs.Watermark, you can also add watermark to all the images in a particular page of the document. Following code sample serves this purpose.

Labels
  • No labels