---
title: "Add Watermark in Python"
---


## Aspose.Words - Add Watermark

**Python Code**

{{< highlight csharp >}}
doc = self.Document(self.dataDir + "TestFile.doc")
self.insertWatermarkText(doc, "CONFIDENTIAL")
doc.save(self.dataDir + "TestFile Out.doc")
{{< /highlight >}}

## Download Running Code

Download **Add Watermark (Aspose.Words)** from any of the below mentioned social coding sites:

- [GitHub](https://github.com/aspose-words/Aspose.Words-for-Java/blob/master/Plugins/Aspose_Words_Java_for_Python/tests/programmingwithdocuments/workingwithimages/addwatermark/AddWatermark.py)
