Learn how to convert PowerPoint to video with a Java REST API. This tutorial walks you through building a PowerPoint‑to‑MP4 converter using a Java RESTful service powered by the Aspose.Slides Cloud SDK, and it explains various settings to tailor the output video to your exact needs.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java for converting presentations to MP4
- Set up a 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 example shows how to convert a PowerPoint presentation to MP4 with Java REST Interface. Using the VideoExportOptions.VideoResolutionTypeEnum enum, you can select the output resolution—FullHD, HD, or QHD. A rich collection of transition effects is also available, including fade, slide down, slide right, slide left, circle close, circle crop, and more.
In this guide we’ve shown you how to transform a PowerPoint presentation into a video using the cloud‑based REST API. If you need to combine multiple decks into a single file, see our tutorial on Merge presentations with Java REST API.