Convert a Presentation and Save It in a Specified Format to Storage

Introduction

The following method allows you to transfer a PowerPoint presentation from a local file to a Cloud Storage, convert the presentation to a desired format and save the result in the storage.

API Information

API Type Description Resource
/slides/convert/{format} PUT Converts a passed presentation to a specified format and saves the result to the storage. ConvertAndSave

Request Parameters

Name Type Location Required Description
document file formData true The data of the presentation.
format string path true The desired format for the conversion.
outPath string query true The output file path to save the result in the storage.
password string header false The password to open the presentation.
storage string query false The name of the storage where the result will be located.
fontsFolder string query false The path to the storage folder containing the external fonts.
slides string query false The 1-based indices of the slides to be converted. If it is not specified, all slides are converted by default.
options object body false The format-specific options for the conversion.

To use fontsFolder parameter, you can create storage folders and upload font files to them using Slides Cloud API.

You can convert parts of presentations using the optional slides parameter.

You can specify format-specific options using the options parameter.

cURL Examples

Convert example.pptx presentation from a local file to PNG images and save the result to MyFolder/images.zip file in MyStorage storage.

SDK Source

Using an SDK (API client) is the quickest way for a developer to speed up the 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. The Aspose.Slides Cloud SDKs can be downloaded from the following page: Available SDKs

SDK Examples

Convert example.pptx presentation from a local file to PNG images and save the result to MyFolder/images.zip file in MyStorage storage.