Spire.Presentation for Java 8.10.4 supports converting slides to SVG and PowerPoint files to SVGZ

2023-10-30 03:25:10

We are excited to announce the release of Spire.Presentation for Java 8.10.4. This version supports converting specified slides to SVG and PowerPoint presentations to SVG. It also enhances the conversion from PowerPoint to PDF. Besides, some known issues are fixed in this version, such as the issue that the program threw an exception java.lang.NullPointerException when loading PowerPoint documents. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2328 Supports converting PowerPoint documents to SVGZ documents.
Presentation ppt = new Presentation();
ppt.loadFromFile("input.pptx");
List bytes = ppt.saveToSVGZ();
for (int i = 0; i < bytes.size(); i++) {
FileOutputStream fileOutputStream = new FileOutputStream("slide" + i + ".svgz");
fileOutputStream.write(bytes.get(i));
fileOutputStream.flush();
fileOutputStream.close();
}
New feature SPIREPPT-2372 Supports converting specified slides to SVG documents.
Presentation ppt = new Presentation();
ppt.loadFromFile("input.pptx");
List bytes = ppt.saveToSVG(0, 36);
for (int i = 0; i < bytes.size(); i++) {
FileOutputStream fileOutputStream = new FileOutputStream("slide" + (i + 1) + ".svg");
fileOutputStream.write(bytes.get(i));
fileOutputStream.flush();
fileOutputStream.close();
}
Bug SPIREPPT-2343 Fixes the issue that the display of the content was incomplete after converting PowerPoint to PDF.
Bug SPIREPPT-2369 Fixes the issue that the hand-drawn pictures were lost after converting PowerPoint to PDF.
Bug SPIREPPT-2377 Fixes the issue that the program threw an exception java.lang.NullPointerException when loading PowerPoint documents.
Click the link below to download Spire.Presentation for Java 8.10.4: