Copy Slides in a PowerPoint Presentation

Introduction

Aspose.Slides Cloud lets you easily copy a slide with its content to create a new slide in a PowerPoint presentation. The presentation must be already saved to a storage. You can copy a slide at the end of the presentation or at a specified position. You can copy a slide either within the same presentation or by specifying an original one. In the second case, the original presentation must also be in the Cloud storage. Both presentations can be password protected and you can specify passwords.

CopySlide

API Information

API Type Description Resource
/slides/{name}/slides/copy POST Copies a slide to create a new slide. CopySlide

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
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.
slideToCopy integer query true The 1-based index of the slide to be copied from the source presentation.
position integer query false The 1-based index for the new slide. If the position is not specified, the slide will be added to the end.
source string query false The name of the presentation file to copy the slide from. If not specified, the slide is copied from the current presentation.
sourcePassword string header false The password for the presentation to copy the slide from.
sourceStorage string query false The name of the storage contaning the source presentation.

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

Examples

Copy a slide at index 4 from MyResources/MyCharts.pptx file saved to the default storage and paste it at index 2 into MyFolder/MyPresentation.pptx file saved to MyStorage.

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.