This article demonstrates how to add footer to PowerPoint document in Java application using Spire.Presentation for Java.
import com.spire.presentation.FileFormat; import com.spire.presentation.Presentation; public class AddFooter { public static void main(String[] args) throws Exception { //Load a PPT document Presentation presentation = new Presentation(); presentation.loadFromFile("Input.pptx"); //Add footer presentation.setFooterText("Demo of Spire.Presentation"); //Set the footer visible presentation.setFooterVisible(true); //Set the page number visible presentation.setSlideNumberVisible(true); //Set the date visible presentation.setDateTimeVisible(true); //Save the document presentation.saveToFile("AddFooter.pptx", FileFormat.PPTX_2010); } }
Output: