Hi,
I downloaded aspose-slides-15.11.0.jar and trying to execute below program to split ppt into multiple slides. But there is a performance issue. I saw there are posts on performance issue is this solved or is it related to trail version. I also see comments that it is in newer version how can I download earlier version.
test.pptx file size: 97 KB
Total slides: 16
Total time in ms: 81448
public static void main(String[] args) {
try {
long st = System.currentTimeMillis();
FileInputStream is = new FileInputStream(“test.pptx”);
Presentation src = new Presentation(is);
ISlideCollection slides = src.getSlides();
int i = 0;
for (ISlide slide : slides) {
Presentation dest = new Presentation();
dest.getSlides().addClone(slide);
FileOutputStream os = new FileOutputStream(“slide” + (i + 1)
+ “.pptx”);
System.out.println("saving slide " + (i + 1));
dest.save(os, SaveFormat.Pptx);
os.flush();
os.close();
i++;
}
is.close();
long end = System.currentTimeMillis();
LOGGER.info(“TOTAL TIME ms:” + (end - st));
} catch (Exception e) {
e.printStackTrace();
}
}