Java 添加页脚到PPT幻灯片
1、通过官网下载jar包后,解压。并将lib文件夹下的Spire.Presentation.jar文件导入程序(导入结果如下)。

1、import com.spire.presentation.*;
public class AddFooter {
public static void main(String[] args) throws Exception {
//加载测试文档
Presentation ppt = new Presentation();
ppt.loadFromFile("test.pptx");
ppt.setFooterText("经济与管理学院制");//设置脚注文字
ppt.setFooterVisible(true);//设置脚注可见
ppt.setDateTimeVisible(true);//设置日期可见
ppt.setSlideNumberVisible(true);//设置页码可见
//保存文档
ppt.saveToFile("AddFooter.pptx",FileFormat.PPTX_2010);
}
}
2、页脚添加效果:

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:95
阅读量:88
阅读量:174
阅读量:174
阅读量:111