Free Support Forum -

Watermark process


Dear Team,

How to remove watermark in word document using Aspose java. I’ve attached input and expected output document for your reference.

Input : (271.5 KB)

Expected OP (269.2 KB)

Thank you



Please try using the following code:

Document doc = new Document("E:\\temp\\input.docx");

HeaderFooter hf = doc.FirstSection.HeadersFooters[HeaderFooterType.HeaderPrimary];
Shape watermark = (Shape)hf.GetChildNodes(NodeType.Shape, true)[0];


The standard way of removing watermark from Word document is mentioned in the following article:
How to Remove Watermark from a Document


Its working fine. Thank you.