Edit Header and Footer in PowerPoint with Java REST API

Discover how to edit the header and footer in PowerPoint using the Java REST API. This step‑by‑step tutorial shows you how to set headers and footers in a PowerPoint file with a Java RESTful service powered by the Java‑based Cloud SDK. You’ll learn to apply a footer to the entire presentation or to 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 example shows how to set PPTX or PPT header and footer with Java REST API. When you instantiate a HeaderFooter object it starts with no default values—every property is initially NULL. To inspect any HeaderFooter instance, simply call its overloaded ToString() method, which prints all properties, including IsDateTimeVisible, IsSlideNumberVisible, DateTimeText, and FooterText.

In this guide we walked through how to set both the PowerPoint document‑level and individual slide footers using the Java REST Interface. When you’re ready to transform your presentation into a video, explore the companion article on Convert PowerPoint to Video with Java REST API.

 English