Follow this article to create presentation with Java REST API. You will learn how to make a PowerPoint presentation with Java based API using a Java-based SDK. It will share details so you can view the information on the newly created PPT/PPTX file and download it if required.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java for creating a presentation
- Setup 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 code demonstrates how to make PPT with Java REST API by setting the new presentation name as PPT or PPTX according to your requirements. If you want to create a presentation in a particular folder in the Cloud storage, pass the folder and storage name. You can also set a password for the newly created presentation by providing passwords while calling the CreatePresentation method.
This article has taught us creating a PPT maker with Java REST API. If you want to merge presentations, refer to the article on Merge presentations with Java REST API.