Issue Converting pps to xps System.ArgumentException

Hi

I am Having an issue with the pps to xps convertion the exception message bellow:

Conversion of pps filed to xps failed with Aspose.Slides(ver 5.4)
"file.pps"

{"Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.\r\nParameter name: emSize"} System.Exception {System.ArgumentException}{"Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.\r\nParameter name: emSize"} System.Exception {System.ArgumentException}

at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style)
at e.Ž..ctor(String fontFamily, Single emSize, FontStyle style)
at e.Š.(Single dpi)
at e.Š.()
at ..(String text, PointF point, Š textParam)
at e.‰.( canvas)
at Aspose.Slides.TextHolder.( canvas, ArrayList rotations, Shape shape, € renderingContext)
at Aspose.Slides.Rectangle.( canvas, ArrayList rotations, € renderingContext)
at Aspose.Slides.Slide.( canvas)
at Aspose.Slides.Slide.(Boolean saveMetafileAsPng)
at .ˆ.(Presentation pres, Stream stream, XpsOptions options)
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, SaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)

Code:
Presentation doc = new Presentation(inputFile);

doc.Save(xpsFileName, Aspose.Slides.Export.SaveFormat.Xps);


Regards

Thanks

Hi Gerardo,

Thanks for your inquiry.

Please try using Aspose.Slides for .NET 6.4.0 for your conversion to XPS and if there is still an issue, please share the source presentation with us so that we may further investigate the issue on our end to help you out further.

Many Thanks,