Split a Presentation from a Local File and Save Parts to Storage

Introduction

The article shows you how to split a PowerPoint presentation stored in a local file and save the splitted parts to a storage.

API Information

API Type Description Resource
/slides/split/{format} PUT Splits a presentation file stored in a local file and saves the result in a storage. SplitAndSaveOnline

Request Parameters

Name Type Location Required Description
document file formData true The presentation file.
format string path true The format for output files. See the table for available formats. The default value is jpeg.
destFolder string query false The storage folder where the output files will be uploaded. If it is not specified, the files will be uploaded to the folder where the presentation is saved.
width integer query false The width of each slide in the output files. Does not affect the HTML format.
height integer query false The height of each slide in the output files. Does not affect the HTML format.
from integer query false The 1-based starting slide number for the splitting. If it is not specified, the splitting starts from the first slide of the presentation.
to integer query false The 1-based last slide number for the splitting. If it is not specified, the splitting ends at the last slide of the presentation.
password string header false The password to open the presentation.
storage string query false The name of the storage where the presentation is saved. If it is not specified, the default storage is assumed.
fontsFolder string query false The path to the storage folder containing custom fonts that can be used in the presentation.

Splitting a Range of Slides

Split the first three slides from MyPresentation.pptx file and save them as 480x270 bitmap images to MyImages folder in MyStorage storage.

cURL Solution

SDK Solutions

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.