In various cases, you may need to split the PowerPoint presentations into multiple files. For example, to split a presentation by each slide, even or odd slides, and so on. In this article, you will learn how to split the PowerPoint PPTX/PPT presentations using C#.
C# API to Split PowerPoint Presentations
To split PPTX or PPT presentations, we will use Aspose.Slides for .NET. It is a presentation manipulation API that lets you create, modify and convert PowerPoint and OpenOffice presentations from within your .NET applications. You can either download the API or install it using NuGet.
PM> Install-Package Aspose.Slides.NET
Split a PowerPoint PPT in C#
The following are the steps to split a PowerPoint presentation using C#.
- First, create an instance of the Presentation class to load the PowerPoint presentation.
- Then, loop through each ISlide in Presentation.Slides collection.
- In each iteration, perform the following steps:
The following code sample shows how to split a PowerPoint PPT in C#.
Split PPT Presentations in C# - Get a Free License
You can split PowerPoint presentations without evaluation limitations by getting a free temporary license.
Split PPT Slides - Online Demo
Try the online presentation splitter, which is based on Aspose.Slides.
In this article, you have learned how to split PowerPoint PPT presentations in C#. You can customize the provided code sample to define your splitting criteria. For example, you can split each slide in the presentation, all the even or odd slides, etc. You can simply install the API and integrate the provided code into your application.