Creating watermarks to docx files

Hi Team,
I have a requirement that, i need to add watermark to my existing word document. Is it possible ? The watermark should have text.

@vikramreddyg,

Thanks for your inquiry. Please read following article about adding watermark to document. Hope this helps you.
How to Add a Watermark to a Document

Thanks @tahir.manzoor ,
But i am looking for java example

@vikramreddyg,

Please use the Java code from the following article:
Add Watermark to a Word Document by using Aspose.Words for Java

Thanks @awais.hafeez,

I am using same example. But when i use Docx file, it is not working. I am getting below error.

com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded

@vikramreddyg,

Thanks for your inquiry. We would suggest you please upgrade to the latest version of Aspose.Words for Java i.e. 18.3. Hope, this helps.

If the problem still remains, please ZIP and upload your input file here for testing. We will investigate the issue on our end and provide you more information.