Java/ Add Footer to PowerPoint Document

<repositories>
<repository>
<id>com.e-iceblue</id>
<name>e-iceblue</name>
<url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>e-iceblue</groupId>
<artifactId>spire.presentation.free</artifactId>
<version>3.9.0</version>
</dependency>
</dependencies>
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("William Blake.pptx");

//Add footer
presentation.setFooterText("Biography of William Blake");
//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);
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store