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.
- Load the document
- Create and initialize watermark object
- Set watermark properties
- Add watermark by specifying page type
- 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.