Loading PPTX Strict Document Throws PptxReadException in C#

Dear Aspose Team,

We face an issue when we are trying to save a .pptx document. The document is a StrictOpenXMLPresentation. In our project we save the .pptx documents which have Strict Conformance to Ecma376 with Aspose.Slides. Somehow in this case Aspose.Slides cannot create a Presentation from the document. The document was saved(and resaved) in PowerPoint and PowerPoint handles the document without any issue. We are using Aspose.Slides Version=21.10.

Code snippet:
Aspose.Slides.Presentation pres = new Aspose.Slides.Presentation(filePath);

Exception:

TYPE: Aspose.Slides.PptxReadException
MESSAGE: Input string was not in a correct format.
SOURCE: Aspose.Slides
CALL STACK:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Aspose.Slides.​ .(IPointCollection , )
at Aspose.Slides. .(IBehavior , , )
at Aspose.Slides. .(Sequence , , , )
at Aspose.Slides. .(Sequence , , , )
at Aspose.Slides. .(Sequence , , , )
at Aspose.Slides. .(Sequence , , , )
at Aspose.Slides. .(Sequence , , )
at Aspose.Slides. .(Sequence , , )
at Aspose.Slides. .(​ , IAnimationTimeLine , , )
at Aspose.Slides. .( [] , IAnimationTimeLine , )
at Aspose.Slides. .(IAnimationTimeLine , , )
at Aspose.Slides. .(ISlide , )
at Aspose.Slides. .(Slide )
at Aspose.Slides.​ .(IPresentation )
at Aspose.Slides. .( , IPresentation )
at Aspose.Slides. .(Presentation , Stream , InterruptionToken )

File: Sample_StrictOpenXMLPresentation.zip (1.7 MB)

Please let us know if you can fix this issue.
We are waiting for your findings/answer.

Kind regards,
Bordi Tamas

[BUG-9857]

@tbordi,
Thank you for the issue description.

I reproduced the problem with loading the PPTX Strict document and logged the issue with ID SLIDESNET-42884 in our tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.

1 Like

Hi, any news regarding this?

@memoq,
The issue has already been resolved in Aspose.Slides 21.12. We also recommend using the latest version of Aspose.Slides.

1 Like