加载pptx文件 new Presentation报错 .net 22.3的版本

"Aspose.Slides.PptxReadException: A null reference or invalid value was found [GDI+ status: InvalidParameter] —> System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]\r\n at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in <1558cfaa7a5b41f4888adfb7570f1fc7>:0 \r\n at System.Drawing.Image.get_PixelFormat () [0x0000d] in <1558cfaa7a5b41f4888adfb7570f1fc7>:0 \r\n at (wrapper remoting-invoke-with-check) System.Drawing.Image.get_PixelFormat()\r\n at System.Drawing.Graphics.FromImage (System.Drawing.Image image) [0x0000e] in <1558cfaa7a5b41f4888adfb7570f1fc7>:0 \r\n at Aspose.Slides.\u0005\u200a\u200a\u2003.7fmp3bvsr86k82etacfzc6fd87txexae\u2009\u2007\u0002 () [0x00000] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0006\u2009\u200a\u2003.\u0002 (Aspose.Slides.\u0003\u2009\u200a\u2003 \u0002) [0x0000e] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u000f\u2003\u200a​.7fmp3bvsr86k82etacfzc6fd87txexae\u2009\u2007\u0002 () [0x00010] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0006\u2009\u200a\u2003.\u0002 (Aspose.Slides.\u0003\u2009\u200a\u2003 \u0002) [0x0000e] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2004\u200a​.\u0002 (System.String \u0002, Aspose.Slides.\u0006\u2004​​ \u0003, System.Int32 \u0005, System.Int32 \b) [0x00084] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2004\u200a​.\u0002 (System.String \u0002, System.Int32 \u0003, System.Int32 \u0005) [0x00008] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2004\u200a​.\u0002 (System.String \u0002) [0x00000] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.ImageCollection.AddImage (Aspose.Slides.ISvgImage svgImage) [0x00063] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u000e\u2007​\u2007.\u0002 (Aspose.Slides.ISlidesPicture \u0002, Aspose.Slides.\u0006\u2001\u2000\u2008 \u0003, Aspose.Slides.\u000f\u2005​\u200a \u0005) [0x00110] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u000f\u2001​\u2007.\u0002 (Aspose.Slides.ISlidesPicture \u0002, Aspose.Slides.\u0006\u2001\u2000\u2008 \u0003, Aspose.Slides.\u000f\u2005​\u200a \u0005) [0x00000] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u000f\u2001​\u2007.\u0002 (Aspose.Slides.ISlidesPicture \u0002, Aspose.Slides.\u0003\u2009\u2002\u2008 \u0003, Aspose.Slides.\u000f\u2005​\u200a \u0005) [0x00142] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\b\u2001​\u2007.\u0002 (Aspose.Slides.PictureFillFormat \u0002, Aspose.Slides.\u0005\u2009\u2002\u2008 \u0003, Aspose.Slides.\u000f\u2005​\u200a \u0005) [0x00017] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u000e\u2001​\u2007.\u0002 (Aspose.Slides.IPictureFrame \u0002, Aspose.Slides.\u0005\u2002\u2000\u2008 \u0003, Aspose.Slides.\u000f\u2006​\u200a \u0005) [0x00039] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2005\u200a\u2007.\u0002 (Aspose.Slides.\b\u2006\u2000\u2008 \u0002, Aspose.Slides.IGroupShape \u0003, Aspose.Slides.\u000f\u2006​\u200a \u0005) [0x00701] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2005\u200a\u2007.\u0002 (Aspose.Slides.IGroupShape \u0002, Aspose.Slides.\u0002\u2002\u2000\u2008 \u0003, Aspose.Slides.\u000f\u2006​\u200a \u0005) [0x0010d] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\b\u2000\u2008\u2007.\u0002 (Aspose.Slides.IBaseSlide \u0002, Aspose.Slides.\u0005​​\u2009 \u0003, Aspose.Slides.\u000f\u2006​\u200a \u0005) [0x0002c] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2006​\u2007.\u0002 (Aspose.Slides.Slide \u0002) [0x0005a] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0006\u2002​\u2007.\u0002 (Aspose.Slides.IPresentation \u0002) [0x0043f] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2006​\u200a.\u000f (Aspose.Slides.\u000e\u2005\u200a\u2005 \u0002, Aspose.Slides.IPresentation \u0003) [0x00011] in <3fe80b455896410816ad08c77800127d>:0 \r\n at Aspose.Slides.\u0002\u2006​\u200a.\u0002 (Aspose.Slides.Presentation \u0002, ![](file:///C:\Users\jing\AppData\Local\Temp%W@GJ$ACOF(TYDYECOKVDYB.png)System.IO.Stream \u0003, Aspose.Slides.InterruptionToken \u0005) [0x0009a] in <3fe80b455896410816ad08c77800127d>:0 \r\n — End of inner exception stack trace —\r\n at Aspose.Slides.\u0002\u2006​\u200a.\u0002 (Aspose.Slides.Presentation \u0002, ![](file:///C:\Users\jing\AppData\Local\Temp%W@GJ$ACOF(TYDYECOKVDYB.png)System.IO.Stream \u0003, Aspose.Slides.Inte

主要报错内容就是这个

Aspose.Slides.PptxReadException: A null reference or invalid value was found [GDI+ status: InvalidParameter] —> System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]\r\n围棋test.zip (6.9 MB)

@sun199204,
感谢您联系支持。

请分享以下数据:

  • 重现异常的代码示例
  • 发生异常的操作系统版本
  • 应用程序中的 .NET 目标平台

@sun199204,
讨论将在此处继续: