PPT PPTX ODP POT ppsx
Aspose.Slides  for .NET
PPTX

Add Watermark to PPTX Presentation using C#

Build your own .NET apps to insert text or image watermark into PPT, PPTX, or ODP presentation using server-side APIs.

Add Watermark to PPTX Presentation via C#

Using Aspose.Slides for .NET, you can add watermark to PPTX presentation. Watermarks are an essential part of any presentation. They are used to protect the content of the presentation from being copied or used without permission. A watermark is a visible or invisible image or text that is placed on top of the presentation. It can be used to identify the owner of the presentation and to prevent unauthorized use. Watermarks can also be used to add a professional touch to the presentation and to make it look more polished.

Add Text Watermark to PPTX using C#


using (var presentation = new Presentation())
{
    ISlide slide = presentation.Slides[0];
    IAutoShape watermarkShape = slide.Shapes.AddAutoShape(ShapeType.Triangle, 0, 0, 0, 0);
    ITextFrame watermarkTextFrame = watermarkShape.AddTextFrame("Watermark");

    presentation.Save("watermark.pptx", SaveFormat.Pptx);
}

Add Image Watermark to PPTX Presentation using C#


using (var presentation = new Presentation())
{
    ISlide slide = presentation.Slides[0];
    IAutoShape watermarkShape = slide.Shapes.AddAutoShape(ShapeType.Triangle, 0, 0, 0, 0);

    IPPImage image = presentation.Images.AddImage(File.ReadAllBytes("watermark.png"));

    watermarkShape.FillFormat.FillType = FillType.Picture;
    watermarkShape.FillFormat.PictureFillFormat.Picture.Image = image;
    watermarkShape.FillFormat.PictureFillFormat.PictureFillMode = PictureFillMode.Stretch;

    presentation.Save("watermark2.pptx", SaveFormat.Pptx);
}

How to Add Watermark to PPTX via C#

These are the steps to add text watermark to PPTX files.

  1. Load PPTX with an instance of Presentation

  2. Select the master presentation

  3. Add shape type using AddAutoShape method

  4. Add watermark text using AddTextFrame method

  5. Save result in PPTX format

Other Supported Formats

Using C#, You can also add Watermark to the following formats: