代码:
//创建Presentation对象
Presentation ppt = new Presentation();
//加载示例文档
ppt.loadFromFile(path1);
//保存为PDF文档
ppt.saveToFile("1111.pdf", FileFormat.PDF);
ppt.dispose();
依赖:
<dependencies>
<dependency>
<groupId> e-iceblue </groupId>
<artifactId>spire.pdf</artifactId>
<version>3.11.6</version>
</dependency>
<dependency>
<groupId> e-iceblue </groupId>
<artifactId>spire.presentation.free</artifactId>
<version>2.6.1</version>
</dependency>
</dependencies>
最后
以上就是喜悦裙子最近收集整理的关于Java PPT转PDF的全部内容,更多相关Java内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复