Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/83d40dc2d5ad8588dcc0940ff1f6ad72 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/83d40dc2d5ad8588dcc0940ff1f6ad72 to your computer and use it in GitHub Desktop.
Remove Watermark from Word Document in Python
# This code example demonstrates how to remove a text watermark from a Word document.
# Load a Watermarked Word document
doc = aw.Document("ImageWatermark.docx")
# Remove a text watermark from
if (doc.watermark.type == aw.WatermarkType.IMAGE) :
doc.watermark.remove()
# Save the file
doc.save("RemoveImageWatermark_out.docx")
# This code example demonstrates how to remove a text watermark from a Word document.
# Load a Watermarked Word document
doc = aw.Document("WatermarkText.docx")
# Remove a text watermark from
if (doc.watermark.type == aw.WatermarkType.TEXT) :
doc.watermark.remove()
# Save the file
doc.save("RemoveWatermarkText_out.docx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment