Remove a Watermark From a Word Document using C#

This short guide describes how to remove a watermark from a Word document using C#. It has the IDE settings, a list of steps to perform the task, and a sample code showing how to remove the draft watermark in Word using C#. You can accomplish this task in any operating system supporting the .NET platform.

Steps to Delete Watermark in Word using C#

  1. Set the environment to use Aspose.Words for .NET to remove watermarks
  2. Load the input Word file using the Document class
  3. Check the watermark type of the loaded document
  4. Call the Remove() method if WatermarkType is Text
  5. Save the output Word file

These steps define how to remove a watermark in Word using C#. Load the source Word file using the Document class, and check the Watermark.Type property and if it is WatermarkType.Text, call the Remove() method to erase the watermark. Finally, save the output Word file without any watermark.

Code to Remove Word Watermark using C#

This code demonstrates how to delete watermark in Word using C#. A Word document may have the type Image, Text, or None where you can delete both the image and text type watermarks using the Remove() method. If the type of Watermark is None, you may not call the Remove method.

This article has taught us how to remove draft watermark in Word using C#. If you want to remove headers/footers from a Word file, refer to the article Remove header and footer in Word using C#.

 English