Copy Master Slide from a PowerPoint Presentation

Introduction

With Aspose.Slides Cloud, you can copy a master slide from one PowerPoint presentation to another. The following method allows you to specify file names of the presentations and an index of the master slide to be copied. You can also apply the master slide to all presentation slides at once.

CopyMasterSlide

API Information

API Type Description Resource
/slides/{name}/masterSlides POST Copies a master slide from one presentation to another. CopyMasterSlide

Request Parameters

Name Type Location Required Description
name string path true The name of a destination presentation file.
cloneFrom string query true The name of a source presentation file.
cloneFromPosition integer query true The 1-based index of the master slide.
cloneFromPassword string header false The password to open the source presentation.
cloneFromStorage string query false The name of the storage containing the source presentation.
applyToAll boolean query false Specifies whether to apply the master slide to every presentation slide. False by default.
password string header false The password to open the destination presentation.
folder string query false The path to the folder containing the destination 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

Copy the first master slide from the document MyTemplates/MainTemplate.pptx to the document MyFolder/MyPresentation.pptx. Apply the master slide to all slides. The presentation files are saved to the default storage.

cURL Solution

SDK Solutions

SDKs

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