This tutorial shows you how to remove a watermark from a presentation using the C# REST API. You’ll learn to delete watermarks in PowerPoint with the C# Low‑Code API by making just a few calls through the .NET‑based SDK, and the sample code demonstrates how to generate the final output file from the API response.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet to remove a watermark
- Set up a C# project with the above SDK for deleting a watermark
Steps to Remove Watermark from PPT with C# REST API
- Create an instance of the SlidesApi class to remove the watermark
- Set the input and output presentation file names
- Read the input file into a memory stream
- Invoke the DeleteWatermarkOnline() method with input presentation file stream
- Save the memory stream in the response and save it on the local disk
These steps summarize how to remove watermark from PowerPoint with C# REST API. Load the input presentation into a stream and call the DeleteWatermarkOnline() method using the input stream. This API call returns the output stream that can be saved on the disk.
Code to Remove Watermark from PPT Online with C# RESTful Service
With this example you’ve seen how to strip a watermark from every slide of a PowerPoint file using the C# .NET REST API. The code processes the entire presentation, and if the source file is protected you can simply supply its password via the API’s password property to unlock and remove the watermark.
By now you’ve learned exactly how to remove a watermark from a PPTX using the C# REST API. When you need to add a watermark instead, see our companion guide: Add watermark to PPT with C# REST API.