Remove Watermark in PowerPoint using C#

This tutorial guides the process to remove watermark in PowerPoint using C#. You will get resources to set up the development environment, a list of steps describing the process in detail, and for understanding the process, a sample code is provided to remove watermark from PowerPoint using C#. We will also discuss the removal of the watermark from the entire presentation.

Steps to Remove Watermark in PowerPoint using C#

  1. Establish the environment for removing the watermark using Aspose.Slides for .NET
  2. Load the presentation and loop through all the slides in it
  3. Within each slide, access the shapes collection
  4. Save each shape into the AutoShape class object and check its name
  5. If the shape name is specific to a watermark, remove it from the collection
  6. Save the resultant presentation after removing all the watermarks

This listing contains a step-by-step process on how to remove watermark from PPTX using C#. Initiate the process by loading the presentation and accessing all its slides to check the shape names. Finally, remove all the shapes whose names fulfil the requirement to delete the shape from the collection.

Code to Remove Watermark from PowerPoint using C#

The above code shows how to remove watermark in PowerPoint using C#. For deleting the shape from a collection, you may use either the name or index of the shape. Each presentation contains a collection of master slides that can be accessed instead of the Slides collection to remove the watermarks from the entire presentation instead of each slide individually.

This quick tutorial has guided us to remove watermarks from a presentation. To strike text in a presentation, refer to the article on how to insert draft watermark in PowerPoint in C#.

 English