Working with Slide Sections

Introduction

Slide sections in PowerPoint are a feature that allows you to organize and structure the content within your presentation. Sections help you group slides together based on specific subjects of your presentation. This feature is especially useful for larger presentations with numerous slides and diverse content. Aspose.Slides Cloud API allows you to read, create, rename, move, and delete sections of slides in presentations.

API Information

API Type Description Resource
/slides/{name}/sections GET Reads information about sections. GetSections
/slides/{name}/sections PUT Replaces existing sections with those specified in the options. SetSections
/slides/{name}/sections POST Creates a new section. CreateSection
/slides/{name}/sections DELETE Deletes sections. DeleteSections
/slides/{name}/sections/{sectionIndex}/move POST Moves the section to a specified position. MoveSection
/slides/{name}/sections/{sectionIndex} PUT Updates the section. UpdateSection
/slides/{name}/sections/{sectionIndex} DELETE Deletes the section. DeleteSection

Request Parameters

GetSections
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.
SetSections
Name Type Location Required Description
name string path true The name of a presentation file.
sections object body true The parameters for the sections.
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.
CreateSection
Name Type Location Required Description
name string path true The name of a presentation file.
sectionName string query true The name of a section.
slideIndex integer query true The 1-based index of the first slide in the section.
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.
DeleteSections
Name Type Location Required Description
name string path true The name of a presentation file.
sections string query false The indices of the sections to be deleted. Delete all by default.
withSlides boolean query false If true, delete the slides related to the deleted sections, otherwise move them to the remaining sections.
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.
MoveSection
Name Type Location Required Description
name string path true The name of a presentation file.
sectionIndex integer path true The 1-based index of the section to be moved.
newPosition integer query true The new position of the section.
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.
UpdateSection
Name Type Location Required Description
name string path true The name of a presentation file.
sectionIndex integer path true The 1-based index of the section to be updated.
sectionName string query true The new name of the section.
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.
DeleteSection
Name Type Location Required Description
name string path true The name of a presentation file.
sectionIndex integer path true The 1-based index of the section to be deleted.
withSlides boolean query false If true, delete the slides related to the deleted section, otherwise move them to the remaining sections.
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.

Examples

A MyPresentation.pptx document contains six slides. Set a Products section starting on the 3th slide and a Support section starting on the 5th slide. Rename the default section to Introduction. Read information about all sections.

cURL Solution

SDK Solutions

Result

Result

SDKs

Check Available SDKs to learn how to add an SDK to your project.