Aspose.Slides  for .NET

Add Text Watermark to PPTX in C#

Build your own .NET apps to watermark PPTX files using server-side APIs.

Watermark PPTX File Using C#

In order to watermark PPTX file, we’ll use

Aspose.Slides for .NET

API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open


package manager, search for Aspose.Slides and install. You may also use the following command from the Package Manager Console.


PM> Install-Package Aspose.Slides.NET

How to Add Watermark to PPTX via C#

You need the aspose.slides.dll to try the following workflow in your own environment.

  1. Create an instance of Presentation class

  2. Select the master presentation

  3. Add shape type using AddAutoShape

  4. Add watermark text using AddTextFrame

System Requirements

Aspose.Slides for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Slides for .NET referenced in your project.

Add Watermark to PPTX - C#

// create a Presentation from scratch
using (var presentation = new Aspose.Slides.Presentation())
    // get the Master Slide to add watermark on all slides
    var master = presentation.Masters[0];
    // add a new shape using IShapeColection.AddAutoShape
    var shape = master.Shapes.AddAutoShape(Aspose.Slides.ShapeType.Triangle, 0, 0, 0, 0);
    // set watermark text
    // save presentation in PPTX format
    presentation.Save("output.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
  • About Aspose.Slides for .NET API

    Aspose.Slides API can be used to read, write, manipulate and convert Microsoft PowerPoint documents to PDF, XPS, HTML, TIFF, ODP and various other formats. One can create new files from scratch and save those in the relevant supported formats. Aspose.Slides is a standalone API for creating, parsing or manipulating presentations, slides and elements and it does not depend on any software like Microsoft or OpenOffice.

    Watermark PPTX via Online App

    Other Supported Watermarking Formats

    Using C#, one can easily watermark different formats including.

    PPT (Microsoft PowerPoint 97-2003)