Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Jan 12, 2021 2:35 pm

Hello, I am working on software that merges some different presentations.

It works the right way, but it's very slow when it comes to big files.
I tried increasing memory allocated for java virtual machines, but without luck.

Any suggestion to speed up the process?

The code I am using is very simple, and it follows a given example. Here it is:

Code: Select all
         // Merges presentation
         Presentation mgd = new Presentation();
         mgd.getSlides().removeAt(0);

         Presentation p1 = new Presentation("path/to/p1.pptx", FileFormat.PPTX_2013);
         for (String[] sld : p1.getSlides()) {
            mgd.getSlides().append(sld);
         }

         Presentation p2 = new Presentation("path/to/p2.pptx", FileFormat.PPTX_2013);
         for (String[] sld : p2.getSlides()) {
            mgd.getSlides().append(sld);
         }

         // Others files here...

         Presentation pn = new Presentation("path/to/pn.pptx", FileFormat.PPTX_2013);
         for (String[] sld : pn.getSlides()) {
            mgd.getSlides().append(sld);
         }

         mgd.saveToFile("path/to/merged.pptx", FileFormat.PPTX_2013);
         mgd.dispose();



Thank you!

pitchbull
 
Posts: 2
Joined: Mon Jul 06, 2020 12:20 pm

Wed Jan 13, 2021 7:19 am

Hello,

Thanks for your inquiry.
To help us further analyze, could you please provide your three input files? You could send them to us (support@e-iceblue.com) via email. Thanks in advance for your assistance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Jan 15, 2021 1:50 am

Hello,

We have received the email and the attached input files you sent to us. Regarding the problem of slow merging of ppt files, our Dev team will do further investigation. Once there is any update, we will inform you in time.
If you have other questions related to our products, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Jun 11, 2021 1:37 am

Hello,

Greetings from E-iceblue!
Glad to inform you that we just released Spire.Presentation for Java Version:4.6.1 which improves the time required to merge ppt files, please download it from the following links to test on your side. Looking forward to your test result.
Website link: https://www.e-iceblue.com/Download/pres ... -java.html
Maven link: http://repo.e-iceblue.com/nexus/content ... ion/4.6.1/

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Thu Jun 17, 2021 10:28 am

Hello,

How is your issue now? Does this hotfix solve your issue? Could you please give us some feedback at your convenience?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Presentation

cron