Follow this article to convert PowerPoint to video with Java REST API. You will learn to develop a Power Point to video converter with Java RESTful Service using a Java-based Cloud SDK. It shares different settings for customizing the output video according to the user’s requirements.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java for converting presentations to MP4
- Setup Java project with the above SDK to transform PPTX online to a video
Steps to Convert PPT to Video with Java Low Code API
- Create the SlidesApi object to transform a presentation into a video
- Create the VideoExportOptions object and set the custom settings for the presentation
- Upload the source presentation to the Cloud storage with a specified name
- Call the DownloadPresentation() method to transform the uploaded presentation into a video using the custom settings
- Save the API call response stream as an MP4 file on the local storage
These steps explain the process to turn PowerPoint into video with Java Low Code API. Create the SlidesApi object, upload the source presentation file to the Cloud storage, and instantiate the VideoExportOptions object to set custom properties for the output video. Finally, the DownloadPresentation() method is used to retrieve the presentation from the cloud storage in the specified format and settings.
Code for PowerPoint Slide to Video Converter with Java based API
This code demonstrates how to change PowerPoint presentation to MP4 with Java REST Interface. You may set the output video resolution to FullHD, HD, and QHD using the VideoExportOptions.VideoResolutionTypeEnum enumerator. There are a lot of transition types that you can opt such as fade, slide down, slide right, slide left, circle close, circle crop, etc.
This article has taught us to create a video from a presentation using a Cloud-based API. If you want to merge multiple presentations into a single presentation, refer to the article on Merge presentations with Java REST API.