Merge Presentations from Various Sources into a File in Storage

Introduction

The article shows you how to merge PowerPoint presentations from different sources: local files, storage, and remote resources. The final presentation is saved in the storage. You can specify slide indices to merge. For protected presentations, passwords can be specified to open them. The request method below allows you to merge presentation files stored in different ways: locally, in storage, and remotely

API Information

API Type Description Resource
/slides/merge PUT Merges presentations or some of their slides. Saves the result in the storage. MergeAndSaveOnline

Request Parameters

Name Type Location Required Description
files array formData false The array of presentation files to merge.
outPath string query true The path to the presentation output file in a storage.
request object body false The information about presentations to merge (paths, passwords, slide indices, etc.).
storage string query false The name of the storage where the final presentation will be saved.

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

Merging Presentations Saved to Local Files

Example: Merge TestData/example1.pptx and TestData/example2.pptx presentations saved to local files and save the result to MyFolder/MyPresentation.pptx file in MyStorage storage.

cURL Solution

SDK Solutions

Merging Presentations Saved to Storage

Example: Merge local.pptx saved to local file, storage.pptx saved on storage, and remote presentation. Save the result to MyFolder/MyPrsentation.pptx file.

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.