Java/ Add Footer to PowerPoint Document

Import JAR Dependency (2 Methods)

<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>

Add Footer to PowerPoint

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);
}
}

--

--

--

Sharing Java Code

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Minimal Nav Menu with Vue.js and GSAP — WotW

Camunda Version 7.16: Migrating a Tasklist Plugin (Angular JS)

Learn to code in 5 minutes

Why You Should Use GatsbyJS To Build Your Next Static Site

Dark theme with Nuxt.js

How to Create a Single Page Application with React?

How I structure React apps

Progressive Web Apps with React & Preact.js

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
Andrew Wilson

Andrew Wilson

Sharing Java Code

More from Medium

What is SPRING BOOT ?

Java I/O Byte Stream Implementation

Convert XML to Word in Java

Test a simple java program with concordion