Follow this article to split slides with C# REST API. You will learn to automatically split PPTX with C# .NET-based API using a .NET-based Cloud SDK. It shares all the properties required for the customization of the conversion process.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet for splitting presentations
- Setup C# project with the above SDK to split PPTX online
Steps to Split PPT with C# Low Code API
- Create an object of the SlidesApi class by setting the client ID and secret
- Upload the source presentation into the Cloud storage by setting a unique name
- Call the Split() method using the uploaded file name, output image format, starting slide, and last slide number
- Parse all the slides in the response object
- Download each slide image using the image name in the Href string
- Save the downloaded image on the disk
These steps explain how to develop a PowerPoint splitter tool with C# REST Interface. Create a SlidesApi object, upload the source presentation file, and call the Split() method by providing the required information. Parse the API response and save all the images created against individual slides on the local disk.
Code for PowerPoint Splitter with C# RESTful Service
This code demonstrates how to develop a PowerPoint splitter online with C# REST Interface. The Split() method requires the uploaded file name, the output image format using the SlideExportFormat enumerator, from index and to index to define the range of slides. The Href of each item in the slides collection contains the reference to the online image created by the API and can be used for downloading the images.
This article has taught us developing a PPTX splitter with C# RESTful Service. If you want to merge presentations, refer to the article on Merge presentations with C# REST API.