Insert footer in Java Powerpoint

 

Today I will show you how to insert a footer in Powerpoint in Java. You can easily insert footers into Powerpoint using a library called Spire.Presentation for Java.

Preparation

1. From the official website of E-iceblue Free Spire. Presentation for Java Download the free version.

f:id:lendoris:20210120151857p:plain

2. Launch the IDE to create a new project, then add the appropriate Spire. Presentation.jar to the reference that was in the installed file.

f:id:lendoris:20210120151914p:plain

code

```java import com.spire.presentation.FileFormat; import com.spire.presentation.Presentation;

public class AddFooter { public static void main(String[] args) throws Exception {

//Load the PowerPoint document. Presentation presentation = new Presentation(); presentation.loadFromFile("Input.pptx");

    //Insert the footer.
    presentation.setFooterText("It's a footer");
    //Display the footer.
    presentation.setFooterVisible(true);
    //Display the page number.
    presentation.setSlideNumberVisible(true);
    //Display the date.
    presentation.setDateTimeVisible(true);

    //you save.
    presentation.saveToFile("AddFooter.pptx", FileFormat.PPTX_2010);
}

}

 <h4> <strong> Execution result </strong> </h4>
<p><img src="https://cdn-ak.f.st-hatena.com/images/fotolife/l/lendoris/20210120/20210120155822.png " alt="f:id:lendoris:20210120155822p:plain" title="" class="hatena-fotolife" itemprop="image" /></p>
<p> </p>


Recommended Posts

Insert footer in Java Powerpoint
Create hyperlinks in Java PowerPoint
Partization in Java
Rock-paper-scissors in Java
Pi in Java
FizzBuzz in Java
[java] sort in list
Read JSON in Java
Interpreter implementation in Java
Make Blackjack in Java
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
NVL-ish guy in Java
Combine arrays in Java
"Hello World" in Java
Callable Interface in Java
Azure functions in java
Simple htmlspecialchars in Java
Boyer-Moore implementation in Java
Hello World in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
Various threads in java
Heapsort implementation (in java)
Zabbix API in Java
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Express failure in Java
Create JSON in Java
Date manipulation in Java 8
What's new in Java 8
Use PreparedStatement in Java
What's new in Java 9,10,11
Parallel execution in Java
Initializing HashMap in Java
Java extracts text content of SmartArt shapes in PowerPoint
Try using RocksDB in Java
Read binary files in Java 1
Convert Java Powerpoint to XPS
Get EXIF information in Java
Save Java PDF in Excel
[Neta] Sleep Sort in Java
Java history in this world
Let Java segfault in 6 lines
Try calling JavaScript in Java
Try developing Spresense in Java (1)
Try functional type in Java! ①
I made roulette in Java.
Refactoring: Make Blackjack in Java
Write flyway callbacks in Java
Topic Analysis (LDA) in Java
Importing Excel data in Java 2
NEologd preprocessing in Java neologdn-java
Change java encoding in windows
Cannot find javax.annotation.Generated in Java 11
Read standard input in Java
Implement Basic authentication in Java
Perl's grep-ish guy in Java