Split PowerPoint

Split PowerPoint Presentations online | Learn how to Split PPT.

This article explains the steps to split PowerPoint Presentations in the C# application. We are well aware that a PPT file contains several different types of information such as text, bulleted points, images, multimedia, and other embedded OLE objects. So instead of sharing the complete file, you may have a requirement to split Powerpoint Slides into separate files and share them accordingly. Therefore, we are going to programmatically split PPT into multiple files.

Split PPT Online in a Web browser

The API Reference for Aspose.Slides Cloud is also available in online swagger format. As per the Document Object Model of Aspose.Slides, a PowerPoint presentation contains a collection of Slides. Our PowerPoint processing Cloud API provides a myriad of options when splitting the PowerPoint slides and enables you to save the output in a variety of output formats. The image on the right side shows the list of supported output formats by the split operation.

Now as a first step, authenticate your user by providing App SID and App Key and once you have provided the valid credentials, a JWT token is generated. So in order to accomplish our requirement to split the PowerPoint presentation slides, we need to use the PostSlidesSplit method. Now click the Try it out button next to the Split POST method. At a bare minimum, you need to provide the name of an input Presentation file to start the operation.

Presentation1.pptx preview on Cloud storage

Image 1:- Presentation1.pptx preview on Cloud storage

Set PowerPoint Presentation Format

PPTX format selection from dropdown.

Image 2:- PPTX format selected from dropdown

In this scenario, we are going to use Presentation1.pptx as shown in the image above to perform the split operation. Under format dropdown, we need to select the desired output format after the split operation. Let’s use PPTX for this scenario. The next step is to specify the From and To slide values. When the From value is not specified, then the split operation starts from the first slide of the presentation. Similarly, if we do not provide To value, then splitting ends at the last slide. Since our input Presentation file has only two slides, we are going to skip this step and it will split both slides as separate presentation files. Now click the Execute button and the operation will be started.

If the user account is properly authenticated and desired input parameters are correct, you will notice a server response code 200 is displayed and the response body will list the source and resultant PPTX files links. Please take a look over the following image file.

Server response body preview

Image 3:- Preview of the server response body.

You may also observe a cURL command displayed which can also be used to perform further PowerPoint slide split operations (after updating the required arguments).

Now let’s have a look at cloud storage after this operation. Notice that two new PowerPoint presentation files are listed on cloud storage.

PowerPoint files as a result of Split operation.

Image 4:- Resultant PowerPoint files after the split operation.

Now let’s have a look over the resultant PowerPoint Presentation.

Preview of two slides in PowerPoint Presentation

Image 5:- Preview of two slides in source PowerPoint Presentation

First slide exported as individual PTX file.

Image 6:- The first slide is exported as an individual PPTX file.

Second slide exported as individual PTX file.

Image 7:- Second slide exported as an individual PTX file.

Split PowerPoint Presentation in C#

In this section, we are going to look into the details of how to split PowerPoint slides using Aspose.Slides Cloud SDK for .NET. So we are going to first upload the Presentation1.pptx file to cloud storage, and then Slides split operation is performed.

While using the above code snippet, you may also generate the output in other supported formats i.e. PPT to PDF, PPT to JPG, PPT to PNG, PPT to HTML, PPT to XPS, etc. All you need to change the value of SlideExportFormat enumeration in PostSlidesSplitRequest() method.

Info: Want to see ppt splitter online ? try using our FREE online Splitter App.

Conclusion

In this article, we have learned the details on how to split PowerPoint presentations using C# .NET as well as through cURL commands. As per your requirements, you may download the complete source code of Aspose.Slides Cloud SDK for .NET from GitHub. Furthermore, in case you encounter any issues while using the API, please feel free to contact us via the free customer support forum.