We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Extra source consumption in merging pptx files

I am merging pptx files using aspose slide for java. If I try to merge 7 slides from different pptx files,It takes 30 sec and 1.15 GB in ram, that is not good, In merging I open files by
Presentation srcPres = new Presentation(“myPptx.pptx”);
and read its slide,this is being happen in a loop, on every new iteration I am opening my new pptx, my question is that, Is old file is in memory or automatically unloaded, if it is in memory is there support some sort of support to unload it,

Hi Abdul Ghaffar,


Thank you for posting.

I have observed your comments and like to share with you that the presentation is not unloaded itself, you may use the Dispose method exposed by the Presentation class, which releases all resources used by Aspose.Slides.Presentation object.

Please share if I may help you further in this regard.

Best Regards,

Am I right ?
Presentation srcPres = new Presentation(“myPptx.pptx”);
.
.
.
.
.
.
.
srcPres.dispose();

Is there some other example for reference?

Hi Abdul Ghaffar,


I have observed your comments and like to share with you that, you are doing it right and the code shared by you is an example itself.

Please share if I may help you further in this regard.

Best Regards,