How to Add Image Watermark in PPTX Presentation Using C#

In this simple and elaborative tutorial, we will exhibit, how to add image watermark in PPTX Presentation using C# without PowerPoint installed. Now a days, PPTX is a popular format for PowerPoint presentations but you may use this example for PPT format as well for adding image watermark to protect intellectual property rights of your presentation.

Steps to add image watermark to PPTX presentation in C#

  1. Download Aspose.Slides for .NET package from NuGet.org
  2. Use Aspose.Slides namespace to load and add watermark
  3. Set license using SetLicense method
  4. Load the presentation to add picture watermark using Presentation Class object
  5. Load the watermark/logo image in presentation image collection
  6. Access and iterate through Master Slide/s inside presentation
  7. For each master slide, add a PictureFrame with added watermark image
  8. Format the shape properties
  9. Apply locking on the added shape to protect image watermark
  10. Save watermarked presentation

Earlier, we looked into How to Insert Draft Watermark in PowerPoint Presentation in C# in another how-to topic. But this topic describes the steps to add image watermark in PowerPoint presentation in C#. You are no more dependent on Microsoft PowerPoint or Interop for using this feature and can execute the code seamlessly on all platforms.

Above all, the unique shape locking feature that is offered by Aspose.Slides is not even available in PowerPoint publicly to protect your watermark image. You can protect the intellectual property rights of the presentation by using locks feature and applying it to image watermark shape to disallow any modification or tempering in PowerPoint presentation.

Code to Add Image Watermark in PowerPoint in C# without Interop

The example is suitable in any .NET application environment using the C# including ASP.NET web application, Windows Forms application and Console based applications. It can be used on your local work machine or on any server having .NET Framework installed.

 English