Use a Source Document

Introduction

The following method allows you to create a PowerPoint presentation using a source document as a starting point. The source document must also be a presentation located in a storage.

API Information

API Type Description Resource
/slides/{name}/fromSource POST Creates a new presentation from a source document from a storage. CreatePresentationFromSource

Request Parameters

Name Type Location Required Description
name string path true The file name for the new presentation.
sourcePath string query false The path to a source presentation.
sourcePassword string header false The password to open the source presentation.
sourceStorage string query false The storage name where the source presentation is located.
password string header false The password to encrypt the new presentation.
folder string query false The folder path where the new presentation will be located.
storage string query false The storage name where the new presentation will be located.

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

cURL Examples

Create a new presentation Data/Sales.pptx in a Main storage using a presentation template Resources/SalesTemplate.potx.

SDK Examples

Create a new presentation Data/Sales.pptx in a Main storage using a presentation template Resources/SalesTemplate.potx.

SDKs

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. 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.