Extract a Slide

Introduction

The following request methods allow you to easily extract a particular slide from a PowerPoint document. At the same time, the slide may be converted to a specified format. It can be PowerPoint format, image, HTML, PDF, and many others. Depending on the output format, many options may be applied for the output document. You can keep the original size of the slide or specify a different one. A password can be provided when the presentation is protected. You can use the default storage and folder where the presentation was saved or specify them in parameters.

DownloadSlide

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{format} POST Downloads the specified slide from a presentation saved to a storage. DownloadSlide

Request Parameters

Name Type Location Required Description
name string path true The file name of a presentation saved to a storage.
slideIndex integer path true The 1-based index of the slide to be downloaded.
format string path true The output format for the slide. See the table for available formats.
options body object false The export options depending on the output format. See conversion options for the available formats.
width integer query false The width of the slide in output format units. The default value is 0 (used the original width).
height integer query false The height of the slide in output format units. The default value is 0 (used the original height).
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.
fontsFolder string query false The path to the storage folder contaning custom fonts to be used with the presentation.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Extract the third slide from MyFolder/MyPresentation.pptx saved to MyStorage and convert it to a 540x380 TIFF image using 24bppRGB pixel format.

cURL Solution

SDK Solutions

SaveSlide

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{format} PUT Extracts the specified slide from a presentation saved to a storage and saves the slide to the storage. SaveSlide

Request Parameters

Name Type Location Required Description
name string path true The file name of a presentation saved to a storage.
slideIndex integer path true The 1-based index of the slide to be extracted from the presentation.
format string path true The output format for the slide. See the table for available formats.
options body object false The export options depending on the output format. See conversion options for the available formats.
outPath string query true The output path for a slide file.
width integer query false The width of the slide in output format units. The default value is 0 (used the original width).
height integer query false The height of the slide in output format units. The default value is 0 (used the original height).
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.
fontsFolder string query false The path to the storage folder contaning custom fonts to be used with the presentation.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

Examples

Extract the second slide from MyFolder/MyPresentation.pptx saved to MyStorage, and save the slide to MyImages/slide_2.png file. The image must contain slide notes and slide comments.

cURL Solution

SDK Solutions

DownloadSlideOnline

API Information

API Type Description Resource
/slides/slides/{slideIndex}/{format} POST Uploads a presentation to a storage and downloads the specified slide from the presentation. DownloadSlideOnline

Request Parameters

Name Type Location Required Description
document file formData true The presentation file data.
slideIndex integer path true The 1-based index of the slide to be downloaded.
format string path true The output format for the slide. See the table for available formats.
width integer query false The width of the slide in output format units. The default value is 0 (used the original width).
height integer query false The height of the slide in output format units. The default value is 0 (used the original height).
password string header false The password to open the presentation.
fontsFolder string query false The path to the storage folder contaning custom fonts to be used with the presentation.
storage string query false The name of the storage.
options body object false The export options depending on the output format. See conversion options for the available formats.

Examples

Extract the fifth slide from MyPresentation.pptx and convert it to a PDF document using the PDF/A-1b standard. Embed all font characters in the output document and set the quality value for JPG images to 90%.

cURL Solution

SDK Solutions

SaveSlideOnline

API Information

API Type Description Resource
/slides/slides/{slideIndex}/{format} PUT Uploads a presentation to a storage, extracts the specified slide from the presentation, and saves the slide to the storage. SaveSlideOnline
Name Type Location Required Description
document file formData true The presentation file data.
slideIndex integer path true The 1-based index of the slide to be extracted from the presentation.
format string path true The output format for the slide. See the table for available formats.
outPath string query true The output path for a slide file.
width integer query false The width of the slide in output format units. The default value is 0 (used the original width).
height integer query false The height of the slide in output format units. The default value is 0 (used the original height).
password string header false The password to open the presentation.
storage string query false The name of the storage.
fontsFolder string query false The path to the storage folder contaning custom fonts to be used with the presentation.
options body object false The export options depending on the output format. See conversion options for the available formats.

Examples

Extract the fourth slide from MyPresentation.pptx and save it to MyImages/slide_4.svg file in SVG format using MyStorage. Embed external fonts from MyFonts folder to the output file.

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.