Free Support Forum - aspose.com

Time and resources consuming .ppt and .pptx editing

Hello,
I am trying to edit .ppt and .pptx files. There seems to be a lot of time spent on each slide. Is this behavior particular only for the demo version of Aspose.Total (Aspose.Slides)?

When editing a .ppt file (like the one attached) I got :

Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at java.util.jar.Attributes.read(Unknown Source)
at java.util.jar.Manifest.read(Unknown Source)
at java.util.jar.Manifest.(Unknown Source)
at java.util.jar.JarFile.getManifestFromReference(Unknown Source)
at java.util.jar.JarFile.getManifest(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getManifest(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.aspose.slides.Table.long(Unknown Source)
at com.aspose.slides.Table.do(Unknown Source)
at com.aspose.slides.Table.int(Unknown Source)
at com.aspose.slides.bjg.do(Unknown Source)
at com.aspose.slides.bcj.do(Unknown Source)
at com.aspose.slides.bcj.do(Unknown Source)
at com.aspose.slides.za.do(Unknown Source)
at com.aspose.slides.dj.do(Unknown Source)
at com.aspose.slides.bej.do(Unknown Source)
at com.aspose.slides.auw.goto(Unknown Source)
at com.aspose.slides.auw.do(Unknown Source)
at com.aspose.slides.Presentation.if(Unknown Source)
at com.aspose.slides.Presentation.if(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at tracker.Slide.track(Slide.java:37)
at tracker.Main.main(Main.java:25)

real 1m48.862s
user 1m38.760s
sys 0m9.802s

I was just inserting a image from an url into the .ppt and then saving the file.
It took a lot of time to process and afterwards it crashed.
Do you have any suggestions on how I may approach this, so that the .ppt and .pptx editing can be less time and resource consuming?

Hi,

I have observed your comments and like to share that you may please increase the java stack size on your end to resolve the issue. The stack size requirement varies from presentation to presentation depending on presentation size, number of slides and content inside slide. Please share if I may help you further in this regard.

Many Thanks,

Thank you for the answer. Do you know any solution for the time consuming part? Will it still work as slow (about 1 minute processing time for a 20 slides ppt) if I use the paid version of Aspose.Slides? Is it working that slow because the demo version inserts a comment on each slide, or this is a normal processing time for the paid version of Aspose.Slides also?

Hi,

I like to share that we are continually improving the presentation loading time in every product release. The presentation loading time will remain the same even you use Aspose.Slides with or without license as the API remains the same even if you use Aspose.Slides without license. I also like to add here that first instance of Presentation object takes time when loading the presentation as it loads the Document Object Model (DOM) for presentation in memory. When you use the same Presentation object to load the same or other presentation in same program, you will observe marked difference in performance. Please share, if any further clarification is needed from my end in this regard.

Many Thanks,