The following code snippet shows how to apply the watermark to the output pages.
withgv.Viewer("sample.docx")asviewer:# Create an HTML file.viewOptions=gvo.HtmlViewOptions.for_embedded_resources("output-watermark.html")# Add watermark.viewOptions.watermark=gvo.Watermark("This is a watermark")viewer.view(viewOptions)
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.