Create Presentation with Java REST API

Discover how to create a presentation with the Java REST API in this step‑by‑step guide. We’ll demonstrate building a PowerPoint file using the Java‑based SDK and show you how to generate, preview, and optionally download the resulting PPT/PPTX document.

Prerequisite

Steps to Create PowerPoint with Java RESTful Service

  1. Create an object of the SlidesApi and set the client ID and secret for creating a presentation
  2. Call the CreatePresentation() method providing the presentation name
  3. Display information from the response object returned by the API call
  4. Download the newly created presentation

These steps describe how to create a PowerPoint presentation with Java RESTful Service. Create the SlidesApi object by setting the client ID and secret and call the CreatePresentation() method to create an empty PowerPoint presentation in the Cloud storage. Display information of the new file created by the API using the response object and download the file to the local disk if required.

Code for Online PowerPoint Maker with Java REST Interface

This snippet demonstrates how to make PPT with Java REST API by letting you specify the exact PPT or PPTX filename you need. To store the presentation in a particular cloud folder, simply provide the folder and storage names, and if you want to protect the file, pass the password values when you call the CreatePresentation method.

In this tutorial we demonstrated how to create a PPT maker using the Java REST API. Want to expand your skills? Dive into our next guide on Merge presentations with Java REST API to discover how to seamlessly combine multiple slide decks.

 English