PPT Document Is Taking More Than 5 Minutes to Convert into PDF in Java

Hi Team,

We are trying convert PPt document into PDF. But, it is taking more than 5 mins.
Java Version :17
We are using aspose.slides version 24.7
Linux version : 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Wed Sep 11 18:02:00 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

File pptFile = new File("pptFilePath");
try (FileInputStream fileInputStream = new FileInputStream(pptFile)) {
	logger.info("initilizatize fileInputStream for the ppt document");
	Presentation ppt = new Presentation(fileInputStream);
	logger.info("initilizatize presensentation object");
	ppt.getDocumentProperties().setTitle("SampleTitle");
	ppt.save(outputPdfFilePath,SaveFormat.Pdf,pdfOptions); //This ppt.save method takes more 5 mins to execute.
}
catch (Exception e) {
//
}

New folder.zip (6.3 MB)

@forasposeissues

It seems that you are experiencing performance issues when converting a PowerPoint (PPT) document to PDF using Aspose.Slides version 24.7. Here are a few suggestions that might help improve the conversion speed:

  1. Optimize the Presentation: Before conversion, ensure that the PowerPoint file is optimized. This includes reducing the size of images, removing unnecessary slides, and simplifying complex elements.

  2. Check for Large Media Files: If your presentation contains large images or embedded media, this can significantly slow down the conversion process. Consider compressing images or removing large media files if they are not essential.

  3. Use PDF Options: When saving the presentation as a PDF, you can configure various PDF options that might help in speeding up the process. For example, you can adjust the quality settings or disable certain features that are not needed in the final PDF.

  4. Profile the Code: If possible, profile your code to identify any bottlenecks during the conversion process. This can help you pinpoint specific areas that may be causing delays.

  5. Update Aspose.Slides: Ensure that you are using the latest version of Aspose.Slides, as performance improvements and bug fixes are regularly included in new releases.

  6. Run on a Different Environment: Sometimes, the performance can be affected by the environment. If feasible, try running the conversion on a different machine or operating system to see if there is any improvement.

If the issue persists after trying these suggestions, consider reaching out to the Aspose support community for further assistance, as they may have more specific insights based on your use case.

Feel free to ask if you have any more questions or need further assistance!

@forasposeissues,

Thanks for the template PowerPoint presentation document.

After initial testing, I was able to reproduce the issue as you mentioned by using your PowerPoint presentation file. I found it takes more time to convert the file to PDF.

We require thorough evaluation of the issue. 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-39608

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.

@forasposeissues,

We are pleased to inform you that your issue (Ticket ID: “SLIDESJAVA-39608”) has been resolved. The fix/enhancement will be part of the January release (Aspose.Slides for Java 25.1) that we plan to publish in January 2025.