Add Watermarks to Diagrams
Adding watermark to all pages of a particular type
Using GroupDocs.Watermark which is a part of Conholdate.Total for .NET, allows you to add watermark to all pages of a certain type in a document. It consists of following steps.
- Load the document
- Create and instantiate watermark object
- Set watermark properties
- Add watermark by specifying page type using PlacementType of DiagramShapeWatermarkOptions
- Save the document
Following code demonstrate how to add watermark to a particular type of the pages.
AdvancedUsage.AddingWatermarks.AdWatermarksToDiagrams.DiagramAddWatermarkToAllPagesOfParticularType
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, use below code.
AdvancedUsage.AddingWatermarks.AddWatermarksToDiagrams.DiagramAddWatermarkToSeparateBackgroundPage
Add watermark to a particular page
GroupDocs.Watermark allows you to add watermark to a particular page of the document using PageIndex of DiagramPageWatermarkOptions as shown in below example.
AdvancedUsage.AddingWatermarks.AddWatermarksToDiagrams.DiagramAddWatermarkToParticularPage
Lock watermark
When you’re calling Add method of Watermaker object created for the Diagram document, simple shape is added to the document. There is no difference between added watermark and Visio shapes that are used to create diagrams.
GroupDocs.Watermark allows you to protect watermark from editing in MS Visio by setting IsLocked property of DiagramShapeWatermarkOptions (as shown in the following example).
AdvancedUsage.AddingWatermarks.AddWatermarksToDiagrams.DiagramLockWatermarkShape
For more details please visit this article.