Create a New Presentation

Introduction

The code examples in this article show you how to create a new empty presentation from scratch using Aspose.Slides Cloud API in your applications. The following method allows you to create a presentation in the simplest way. New PowerPoint presentations can also be created based on some source presentations.

API Information

API Type Description Resource
/slides/{name} POST Creates a new empty presentation. CreatePresentation

Request Parameters

Name Type Location Required Description
name string path true The file name for the new presentation.
data file formData false The binary data of a source presentation.
inputPassword string header false The password to open the source presentation.
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

Example 1

Create an empty presentation Data/Sales.pptx in a Main storage.

Example 2

Create a presentation Data/Sales.pptx in a Main storage from a source presentation input.pptx.

SDK Examples

Create an empty presentation Data/Sales.pptx in a Main storage.

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.