Watermarker.get_content() returns a WordProcessingContent whose sections each expose a shapes collection. Watermarks added to a Word document are shapes, so this is how you find, modify, and remove watermarks that already exist in a document.
You can replace a shape’s text by assigning to shape.text, replace its image by assigning a WordProcessingWatermarkableImage to shape.image, set or clear a hyperlink via shape.hyperlink, and modify its position, size, and rotate_angle. Headers and footers are available through section.headers_footers.
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
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.