代码:
//创建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>