DiagramPageWatermarkOptions class
Leave feedback
On this page
Represents watermark adding options when adding a shape watermark to a particular page of a Visio document.
Learn more:
The DiagramPageWatermarkOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the DiagramPageWatermarkOptions class. |
| Property | Description |
|---|---|
| page_index | The page index to add watermark to. |
| is_locked | The lock state of the shape in Visio. If True, shape editing will be forbidden. (inherited from DiagramWatermarkOptions) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
from groupdocs.watermark import Watermarker, DiagramLoadOptions, TextWatermark, DiagramPageWatermarkOptions, Font
load_options = DiagramLoadOptions()
with Watermarker(r"D:\test.vsdx", load_options) as watermarker:
watermark = TextWatermark("watermark test", Font("Arial", 42))
options = DiagramPageWatermarkOptions()
options.is_locked = True
options.page_index = 0
watermarker.add(watermark, options)
watermarker.save()
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.