importgroupdocs.watermarkasgwimportgroupdocs.watermark.contents.wordprocessingasgwc_wpload_options=gw.WordProcessingLoadOptions()withgw.Watermarker("document.docx",load_options)aswatermarker:content=watermarker.get_content(gwc_wp.WordProcessingContent)# manipulate the document as needed