Hello,
I’m using Aspose.Slides 17.10 for Java and I am facing a difference in speed of saving one slide as HTML between java 8 and java 11. Please find attached xlsx file with results, presentation file and check this.
Thanks, Zeljko
@Test
public void testAspose() {
String path = "HtmlTest_VA.pptx"; //$NON-NLS-1$
Presentation presentation = null;
String saveFilePath = System.getProperty("java.io.tmpdir") + "/createHtmlOfEachSlide"; //$NON-NLS-1$
try {
presentation = new Presentation(path);
ISlideCollection slides = presentation.getSlides();
for (int i = 1; i < slides.size() + 1; i++) {
boolean slide = slides.get_Item(i - 1).getHidden();
if (!slide) {
try (OutputStream outputStream = new FileOutputStream(
saveFilePath.concat(String.valueOf(i)))) {
long start = System.nanoTime();
presentation.save(outputStream, new int[] { i }, SaveFormat.Html);
System.out.println("slide " + i + ":" + (System.nanoTime() - start) / 1000000);
} catch (Exception e) {
}
}
}
} finally {
presentation.dispose();
}
}
results.xlsx.zip (5.7 KB)
HtmlTest_VA.pptx.zip (181.6 KB)