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 property indicates whether editing of the shape in Visio is forbidden. (inherited from DiagramWatermarkOptions) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.diagram import DiagramPageWatermarkOptions
from groupdocs.watermark.watermarks import TextWatermark, Font
with Watermarker("./diagram.vsdx") as watermarker:
watermark = TextWatermark("watermark test", Font("Arial", 42.0))
options = DiagramPageWatermarkOptions()
options.is_locked = True
options.page_index = 0
watermarker.add(watermark, options)
watermarker.save("./output.vsdx")
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.