我们很高兴地宣布发布 Spire.Presentation for Java 11.3.5。本次更新新增了将 PPTX 文件保存为视频格式(如 MP4 和 WMV)的功能。详情如下。
新功能:
- 支持将 PPTX 保存为视频格式。
String inputFile = "input.pptx";
String outputFile = "output.mp4";
Presentation presentation = new Presentation();
presentation.loadFromFile(inputFile);
SaveToVideoOption saveOption = new SaveToVideoOption.Builder("D:\tools\ffmpeg-7.1.1-essentials_build\bin") // 设置 ffmpeg 路径
.setFps() // 帧率
.setThreadsCount() // 线程数
.setDurationForEachSlide() // 每张幻灯片的持续时间
.build();
presentation.setSaveToVideoOption(saveOption);
presentation.saveToFile(outputFile, FileFormat.AUTO);
获取Spire.Presentation for Java 11.3.5请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-JAVA.html







