Merge Presentations with Java REST API

Follow this article to merge presentations with Java REST API. It will guide you in developing a PowerPoint presentation merger with Java Low Code API using the Java-based Cloud SDK. You will also learn to display the output PPT/PPTX file properties and download the output presentation file from the Cloud storage if required.

Prerequisite

Steps to Combine PowerPoint Slides with Java RESTful Service

  1. Create an object of the SlidesApi class by setting the client ID and secret for merging presentations
  2. Upload the destination and input presentations to the Cloud storage by setting unique names
  3. Create the PresentationsMergeRequest object and set the paths of the input presentations for merging
  4. Call the Merge method providing the destination presentation name and the request object
  5. Display the resultant presentation properties returned by the Merge() API call
  6. Download and save the output presentation after combining the input presentations

These steps describe how to combine PPT with Java based API. The main step is to upload all the destination and input presentations to the Cloud storage and set the list of the presentation’s Cloud paths in the request object. Finally, call the Merge() method by providing the destination presentation and the request object, and optionally download the output destination presentation to the local storage.

Code to Merge PowerPoint with Java Low Code API

This code demonstrates the development of the PPTX merger with Java RESTful Service. Note that you can change the order of merger by setting the order of file names in the request object. While adding the input files in the request object you can provide the passwords for all or the selected presentations as per your requirements.

This article has taught us combining presentations using web API. If you want to create a presentation, refer to the article on Create presentation with Java REST API.

 English