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

Free Support Forum - aspose.com

PPT to PDF Сonversion Is Extremely Slow and Crashes a Browser

Hello Andrey,

We were able to bypass the noclassdef found issue by making some POM changes…

However, we are observing 2 issues

  1. PPT to PDF conversion is extremely slow and crashes the browser. A four page report took about 6 mins to download.

  2. The same pdf gets emailed out. We are unable to open the PDF. It says the file is corrupted.

We do not see any errors in the logs at this time. We are changing the debug levels and will keep you posted if we see errors.

Please help with the above 2 issues.

thanks
Pawan

@pawann,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following data and information:

  • input presentation file
  • output PDF files
  • code example that reproduces the problem
  • OS version on which the code was executed
  • JDK version in your app
  • Aspose.Slides version you used
  • any additional information

Hello Andrey,

The slowness issue still persists with the new jar.

Two sets of tests

result-vs-empty.pdf (280.8 KB)
vs empty 2.pptx.zip (501.5 KB)

aspose bi test.pptx.zip (158.9 KB)
result.pdf (173.1 KB)

  • code example that reproduces the problem
        License license = new License();
        File file = new File(path);
        FileInputStream inputStream = new FileInputStream(file);
        license.setLicense(inputStream);
        InputStream basePPTStream = sourcePPTfile.getInputStream();

        Presentation ppt = new Presentation(basePPTStream);

        contentType = "application/pdf";
        fileName = "result.pdf";
        response.setContentType(contentType);
        response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");

        ppt.save(resultStream, SaveFormat.Pdf);

        byte[] byteArray = resultStream.toByteArray();
        response.setContentLength(byteArray.length);
        response.getOutputStream().write(byteArray);
  • OS version on which the code was executed

jboss-eap-7/eap73-openjdk8-openshift-rhel7 image, version 7.3.10

  • JDK version in your app

1.8

  • Aspose.Slides version you used
    22.12 - new jar
    21.2 - old jar

  • any additional information

Timed test results

aspose bi test ppt output : result.pdf

1 min 17.16s with 22.12 aspose library

16s with 21.2 aspose library

VS empty 2.pptx output : result-vs-empty.pdf

58.28s with 22.12 aspose library

15.22s with 21.2 aspose library

@pawann,

Could you please clarify how I can see the same problem?

hi andrey,

we deployed our application in the test env with the aspose slides jar one at a time and ran the same tests… we have provided the results.

With the older jar, the performance is much better. result.pdf (173.1 KB)
result-vs-empty.pdf (280.8 KB)

Uploaded the pds’s again…

@pawann,
Could you clarify how you measured the conversion time?
Also please measure the time only for the following code:

Presentation ppt = new Presentation("vs empty 2.pptx"); // and "aspose bi test.pptx"
ppt.save("output1.pdf", SaveFormat.Pdf); // and "output2.pdf"

The time was from postman when making the REST API call for the standalone code.

Also please measure the time only for the following code:
I also measured time as per the request , still I’m seeing the same slowness

Results for the BI PPT time measurements for the following code only

Presentation ppt = new Presentation("vs empty 2.pptx"); // and "aspose bi test.pptx"
ppt.save("output1.pdf", SaveFormat.Pdf); // and "output2.pdf

OLD Version of Aspose JAR - 18.75 S

From the LOGS below

1/27/23
10:11:46.844 AM Start aspose save

1/27/23
10:12:00.445 AM End aspose save

Same PPT with NEW Version of Aspose JAR - 1 Min 3 secs

1/27/23
11:14:40.047 AM Start aspose save

1/27/23
11:15:39.370 AM End aspose save

@pawann,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39106

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@pawann,
Unfortunately, our developers are unable to reproduce the issue you are experiencing. The conversion takes ~2 seconds with both versions 21.2 and 22.12. Could you provide a sample project to reproduce the issue?

When you say project - what do you mean? we created a api end point with the code I shared above and deployed it on our servers.
Did your team try the test on the same OS/ java ?

Please let me know what I can provide. We need to solve this at the earliest. At this time, we have a message put up on our production application for users to not use PDF.

Please note users can choose to download between a PPT and PDF. PPT works fine. only PDF is the problem

@pawann,

We mean a Java project that we can compile and reproduce the problem you are experiencing.

Our developers tested the problem in the same environment.