Failed to Open PPTX with a Slide Having an Empty Comment in C#

Hi,

I have a PPTX which I try to read using Aspose:

PptImgExporter.cs: line 109: Presentation m_presentation = new Presentation(szPptxPath);

This line gives error:

Aspose is not able to read this PPT. The error on the console:

Failed to open the presentation C:\Users\xyz\sample.pptx. May have CMYK JPEG image in there.
Exception - at Aspose.Slides.?? .(Presentation , Stream, InterruptionToken )
at Aspose.Slides.Presentation(Stream , Boolean)
at Aspose.Slides.Presentation.(Stream , Boolean)
at Aspose.Slides.Presentation.(String , Boolean)
at Aspose.Slides.Presentation…ctor(String file)
at AsposeHoster.PptImgExporter…ctor(String szPptxPath) in C:\Users\xyz\AsposeHoster\PptImgExporter.cs:line 109

This is a customer PPTX having a slide with an empty comment which causes Aspose failure to open the PPTX. I am sharing a sample slide which fails to open in Aspose. We are using Aspose Slides for .NET 25.3.
sample.zip (26.9 KB)

Thanks,
bhav

@bhav

It seems that you are encountering an issue when trying to open a PPTX file that contains an empty comment, which is causing Aspose to throw an exception. This type of problem has been reported before, particularly with presentations that include modern comments.

To address this issue, it is recommended to check if you are using the latest version of Aspose.Slides. The problem with loading presentations that contain modern comments was identified and subsequently fixed in version 22.6 of Aspose.Slides. If you are using an older version (like 25.3 as mentioned), it may be beneficial to upgrade to the latest version to see if the issue persists.

If upgrading does not resolve the issue, you may want to consider the following steps:

  1. Check for Updates: Ensure that you are using the most recent version of Aspose.Slides, as updates often include bug fixes and improvements.
  2. Review the Presentation: If possible, try to edit the PPTX file to remove the empty comment or any other elements that might be causing the issue.
  3. Contact Support: If the problem continues, consider reaching out to Aspose support with the specific details of your issue, including the presentation file and the environment in which you are running your code.

By following these steps, you should be able to either resolve the issue or gather enough information to seek further assistance effectively.

If you need more specific guidance or have additional questions, feel free to ask!

@bhav,
I’ve reproduced an exception when loading the PowerPoint presentation you provided. We are sorry that you encountered this problem.

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): SLIDESNET-44934

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.

The issues you found earlier (filed as SLIDESNET-44934) have been resolved in Aspose.Slides for .NET 25.5 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.