Convert a Presentation and Get It in a Specified Format

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 obtain the result.

API Information

API Type Description Resource
/slides/convert/{format} POST Converts a passed presentation to a specified format and returns the result of the conversion. Convert

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.
password string header false The password to open the presentation.
storage string query false The name of the storage containing the external fonts.
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

Create MyFonts storage folder in Main storage, add custom.ttf font to the folder, convert example.pptx presentation to PDF format, and save the PDF document to output.pdf file.

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

Create MyFonts storage folder in Main storage, add custom.ttf font to the folder, convert example.pptx presentation to PDF format.