In this guide you’ll learn how to create a presentation with the Java REST API. We’ll walk you through building a PowerPoint file using a Java‑based SDK, showing you how to generate, view, and optionally download the resulting PPT/PPTX document.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java for creating a presentation
- Set up a Java project with the above SDK to generate PPTX online
Steps to Create PowerPoint with Java RESTful Service
- Create an object of the SlidesApi and set the client ID and secret for creating a presentation
- Call the CreatePresentation() method providing the presentation name
- Display information from the response object returned by the API call
- 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 illustrates how to make PPT with Java REST API by letting you choose a PPT or PPTX filename that fits your needs. To place the presentation in a specific cloud folder, simply provide the folder and storage names. You can also secure the new file with a password by supplying the password values when you call the CreatePresentation method.
In this tutorial we’ve shown you how to build a PPT maker using the Java REST API. Ready to take it further? Check out our guide on Merge presentations with Java REST API to learn how to combine multiple slideshows effortlessly.