Spire.Presentation for Java 专业的 PowerPoint API,它允许开发人员在 Java 应用程序中创建、读取、写入、转换和保存 PowerPoint 文档,而无需安装 Microsoft PowerPoint。
这么优秀的国产工具怎能错过呢!想要获取更多福利的朋友咨询在线客服哦~
下面是示例PowerPoint文档的屏幕截图。

import com.spire.presentation.FileFormat;import com.spire.presentation.Presentation;public class ToHtml { public static void main(String[] args) throws Exception { //Create a Presentation object Presentation presentation = new Presentation(); //Load the sample document presentation.loadFromFile("C:\Users\Administrator\Desktop\sample.pptx"); //Save the document to HTML format presentation.saveToFile("C:\Users\Administrator\Desktop\ToHtml.html", FileFormat.HTML); }}
输出文件

是E-iceblue官方友好合作伙伴,如果您对spire.Presentation
感兴趣,可以联系在线客服了解具体授权价格和使用机制。标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!