Watermarker.get_content() returns a DiagramContent whose pages expose the diagram’s shapes and headers/footers. You can iterate the shapes to read their properties, modify them, or remove them.
Extract information about shapes
The example reports the shapes on the first page of a Visio diagram.
You can replace a shape’s text by assigning to shape.text, replace its image by assigning a DiagramWatermarkableImage to shape.image, and modify its position and size through x, y, width, height, and rotate_angle.
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.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.