Move a slide to a new position in a PowerPoint Presentation

Introduction

Aspose.Slides Cloud lets you move a slide to a new position within a PowerPoint presentation. The following methods allow you to both move a single slide and change the order of multiple slides at the same time.

MoveSlide

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/move POST Moves a presentation slide to a new position. MoveSlide

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of the slide to be moved.
newPosition integer query true The new index for the slide.
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.

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

Examples

MyFolder/MyPresentation.pptx file saved to MyStorage contains four slides. Move the third slide to the first position.

cURL Solution

SDK Solutions

ReorderSlides

API Information

API Type Description Resource
/slides/{name}/slides/reorder POST Changes the order of presentation slides. ReorderSlides

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
oldPositions string query false A comma separated array of 1-based indices of slides to be reordered.
newPositions string query false A comma separated array of new slide positions.
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.

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

Examples

MyFolder/MyPresentation.pptx file saved to MyStorage contains three slides. Swap the first and last slides.

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.