Hello Support,
I get the exception bellow, when I convert PowerPoint to PDF on ubundu wsl (attached the VS test project. To reproduce run this command: “dotnet vstest TestAsposeSlidesTests.dll” ):
Failed RunTest [1 s]
Error Message:
Test method TestAsposeSlides.Tests.SlidesToPDFTests.RunTest threw exception:
System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
Stack Trace:
at System.Drawing.StringFormat.get_GenericTypographic()
at␦␦…ctor(Bitmap , Boolean)
at␦␦…ctor(Bitmap )
at␦…ctor(Int32 , Int32, Single , Single , Boolean , ␦␦ , , List1 ) at Aspose.Slides.Slide.(Boolean ,, ␦␦ , List
1 , InterruptionToken )
at ␦.(Presentation , Stream, Int32[] , PdfOptions , InterruptionToken )
at ␦(Presentation , Stream, PdfOptions , InterruptionToken )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
at TestAsposeSlides.SlidesToPDF.Run(Stream pptExample) in C:\Users\vasil\Downloads\Aspose.Slides-for-.NET-master\TestAsposeSlides\TestAsposeSlides\Class1.cs:line 14
at TestAsposeSlides.Tests.SlidesToPDFTests.RunTest() in C:\Users\vasil\Downloads\Aspose.Slides-for-.NET-master\TestAsposeSlide
s\TestAsposeSlidesTests\SlidesToPDFTests.cs:line 22
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
TestAsposeSlides.zip (216.8 KB)