Add Watermark to PowerPoint Slides using C++

Add Watermark to PowerPoint Slides using C++

A watermark identifies the state of the document with texts like confidential, draft, etc., and makes it difficult for the original document to be copied. Watermarks are also used to specify the ownership of a document by showing the company name or logo. Watermarks in PowerPoint files can be both image or text-based. In this article, you will learn how to add text and image watermarks to PowerPoint slides using C++.

C++ API for Adding Watermark to PowerPoint Slides

We will use the Aspose.Slides for C++ API to add watermark to PowerPoint slides. It is a robust and feature-rich API that supports creating, reading, and updating PowerPoint files without requiring additional software. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

Add Text Watermark to PowerPoint Slides using C++

You can add a text watermark to PowerPoint slides by following the steps given below.

The following sample code shows how to add text watermark to PowerPoint slides using C++.

Image of the output generated by the sample code
Image of the output generated by the sample code

Add Image Watermark to PowerPoint Slides using C++

In order to add an image watermark to PowerPoint slides, please follow the steps given below.

The following sample code shows how to add an image watermark to PowerPoint slides using C++.

Image of the output generated by the sample code
Image of the output generated by the sample code

Get a Free License

In order to try the API without evaluation limitations, you can request a free temporary license.

Conclusion

In this article, you have learned how to add a watermark to PowerPoint slides using C++. The shared code samples show how to easily add image and text watermarks to PowerPoint slides using the Aspose.Slides to C++ API. It is a powerful API that provides a bunch of additional features for working with PowerPoint PPTX/PPT files. You can explore the API in detail by visiting the official documentation. In case of any queries, please feel free to reach us at our free support forum.

See Also