Follow this article to animate PowerPoint slides with Java REST API. You will learn to set slideshow transitions with Java Low Code API using the Java Cloud API. You will learn to modify an existing PowerPoint presentation by setting various transition effects in the desired slides.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java for inserting transitions in the slides
- Setup Java project with the above SDK to add animation in a slide
Steps to Add Slide Transition with Java REST API
- Set the credentials to create a SlidesApi object for adding transitions
- Upload the presentation to the Cloud storage for adding transitions
- Create a new slide for setting the transition
- Create an object of the SlideShowTransition class for setting transition characteristics
- Set the transition settings in the SlideShowTransition object
- Call the UpdateSlide() method to set a transition of the desired slide
- Save the output presentation with new transitions
These steps describe the process for adding the PowerPoint transitions with Java REST Interface. Upload the presentation, create a new skidded, add a new transition object to it, and set the desired properties in the presentation. Finally, call the UpdateSlide() to set the new transition to an existing slide.
Code for Adding Animation and Transition in PowerPoint with Java based API
This code shows how to set PowerPoint slide transition with Java REST API. The SlideShowTransition class contains a large number of properties such as AdvanceAfter, AdvanceAfterTime, AdvanceOnClick, SoundMode, SoundName, etc. You may use the same transition for multiple slides by calling the UpdateSlide() for all the desired slides.
This article has guided us to work with PowerPoint presentation transitions with Java RESTful Service. For adding sections to a presentation slide, refer to the article on Add sections in PowerPoint with Java REST API.