我是靠谱客的博主 喜悦裙子,这篇文章主要介绍Java PPT转PDF,现在分享给大家,希望可以做个参考。

代码:


//创建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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(111)

评论列表共有 0 条评论

立即
投稿
返回
顶部