This tutorial describes how to delete background in PowerPoint with C# REST API. You will learn how to delete background in PowerPoint with C# Low Code API using the .NET-based Cloud SDK. Details will be discussed to delete background images from all or selected slides in the presentation.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet for deleting slides background
- Setup C# project with the above SDK to delete the image from the background
Steps to Remove Background in PowerPoint with C# REST Interface
- Create the SlidesApi object with the client ID and secret for removing the image background
- Upload the target presentation having a slide with an image background
- Invoke the DeleteBackground() method by providing the uploaded presentation and the slide number
- Download the updated presentation after removing the background
These steps describe how to delete picture background in PowerPoint with C# REST Interface. Create the SlidesApi using the client ID/secret and upload the source presentation with background images. Invoke the DeleteBackground() method by providing the uploaded presentation and slide index starting from 1.
Code to Remove Background in Power Point with C# RESTful Service
This code has demonstrated how to remove background from PowerPoint presentation with C# RESTful Service. You may repeat this process by iterating through all the slides in the presentation and calling the DeleteBackground() method. Slides can be filtered by checking the properties of each slide and deleting background images from the selected slides only.
This article has taught us to remove the background image from a slide. If you want to create the image background, refer to the article on Use Picture as Background in PowerPoint with C# REST API.