Hi Thanks for your reply.
I have allocated 4GB of memory to merge only 20 files. Each slide contains some data in tabular format. Some of these slides contains charts. No heavy graphics. Total file size is not exceeding 3 MB.
Please note that I have used “dispose()” method for source and destination also. I found no difference with and without using dispose method. The program goes out of memory beyond 80-90 slides.
During production use, the container will always have more memory but if merging process will occupy them all then it will affect other processes and overall performance will degrade. I don’t want to do that.
Is there any solution to merge few files without consuming this much amount of memory? You have provided method to clone slides. Is there any other alternative to append presentation files directly instead of slides without consuming this much amount of memory?