Edit Header and Footer in PowerPoint with Java REST API

Follow this article to edit header and footer in PowerPoint with Java REST API. It will guide you to set the header and footer in PowerPoint with Java RESTful Service using the Java-based Cloud SDK. You will learn to set the footer for the entire presentation or set the footer for the individual slides.

Prerequisite

  1. Instantiate the SlidesApi object with the client ID and secret for designing the presentation footer
  2. Upload the source presentation file to the Cloud storage for setting the footer
  3. Create an object of the HeaderFooter class and set the desired parameters required for all the slides
  4. Invoke the SetPresentationHeaderFooter method to set the HeaderFooter object for the entire presentation
  5. Instantiate another HeaderFooter object and set parameters for the first slide
  6. Call the SetSlideHeaderFooter() method to set the footer for a specific slide
  7. Display the footer details and save the resultant presentation when required

The above steps describe how to set headers and footers in PowerPoint with Java based API. Create the SlidesApi object, upload the input presentation, and create multiple HeaderFooter objects for the entire presentation using the SetPresentationHeaderFooter() method or for selected slides using the SetSlideHeaderFooter() method. You may download the updated presentation and also display details of any footer.

This code demonstrates how to set PPTX or PPT header and footer with Java REST API. When you declare a HeaderFooter object it does not have any default values and all the parameters are set to NULL by default. For displaying the properties of any HeaderFooter object you may call the ToString() method that is overloaded for displaying all the properties including IsDateTimeVisible, IsSlideNumberVisible, DateTimeText, and FooterText.

This article has demonstrated how to set the PowerPoint and slides footer with Java REST Interface. For generating a video from a presentation, refer to the article on Convert PowerPoint to Video with Java REST API.

 English