Hi there
Running version Slides .Net 224
I’m getting an error when we try to open a presentation.
The following error is thrown as part of the Presentation pres = new Presentation(…) call
Aspose.Slides.PptxReadException: Parameter is not valid.
—> System.ArgumentException: Parameter is not valid.
at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at …ctor( )
at . ()
at .( )
at . ()
at .( )
at .(String , , Int32 , Int32 )
at .(String , Int32 , Int32 )
at .(String )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single , Boolean& )
at Aspose.Slides.ImageCollection.(ISvgImage )
at Aspose.Slides.ImageCollection.AddImage(ISvgImage svgImage)
at .(ISlidesPicture , , )
at .(ISlidesPicture , , )
at .(ISlidesPicture , , )
at .(PictureFillFormat , , )
at .(IPictureFrame , , )
at .( , IGroupShape , )
at .(IGroupShape , , )
at .( , IGroupShape , )
at .(IGroupShape , , )
at .(IBaseSlide , , )
at .(Slide )
at .(IPresentation )
at .( , IPresentation )
at .(Presentation , Stream , InterruptionToken )
— End of inner exception stack trace —
at .(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.(String )
at Aspose.Slides.Presentation…ctor(String file)
at xxx
After reducing the file and searching for the slide with the issues, i found that the issues is caused by some svg icons on a few slides.
I have made a simple version of the slide that only contain the error-causing elements and uploaded it here: error_input.pptx - Google Slides
I hope you might be able to provide some direction on how to solve this issue
be
Anders