We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

In some official examples, there are errors in mono 6.10.104 or mono 6.8.123 and windows

for example,ConvertAllPagesToEMF.Run().There are other similar examples.
Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in :0
at System.Drawing.Image.get_PixelFormat () [0x0000d] in :0
at (wrapper remoting-invoke-with-check) System.Drawing.Image.get_PixelFormat()
at System.Drawing.Graphics.FromImage (System.Drawing.Image image) [0x0000e] in :0
at #=zCBsshCKk_2m3VnE8xyBLJGCQE7UB9Hzn6g095YM=.#=zAg0biwk= (System.IO.Stream #=z9EZmac8=, #=zIte9$tu7QJrIzH7fWc6kOcmUVChilPrLxw== #=zodmEFRReoAXH) [0x0010c] in <82d46bd90bc945fa7f1f63909dbe8270>:0
at Aspose.Pdf.Devices.EmfDevice.Process (Aspose.Pdf.Page page, System.IO.Stream output) [0x00022] in <82d46bd90bc945fa7f1f63909dbe8270>:0
at C.ConvertAllPagesToEMF.Run () [0x00069] in <5d733866f1174c4f99f33a0e924573b7>:0
at C.Program.Main (System.String[] args) [0x00044] in <5d733866f1174c4f99f33a0e924573b7>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in :0
at System.Drawing.Image.get_PixelFormat () [0x0000d] in :0
at (wrapper remoting-invoke-with-check) System.Drawing.Image.get_PixelFormat()
at System.Drawing.Graphics.FromImage (System.Drawing.Image image) [0x0000e] in :0
at #=zCBsshCKk_2m3VnE8xyBLJGCQE7UB9Hzn6g095YM=.#=zAg0biwk= (System.IO.Stream #=z9EZmac8=, #=zIte9$tu7QJrIzH7fWc6kOcmUVChilPrLxw== #=zodmEFRReoAXH) [0x0010c] in <82d46bd90bc945fa7f1f63909dbe8270>:0
at Aspose.Pdf.Devices.EmfDevice.Process (Aspose.Pdf.Page page, System.IO.Stream output) [0x00022] in <82d46bd90bc945fa7f1f63909dbe8270>:0
at C.ConvertAllPagesToEMF.Run () [0x00069] in <5d733866f1174c4f99f33a0e924573b7>:0
at C.Program.Main (System.String[] args) [0x00044] in <5d733866f1174c4f99f33a0e924573b7>:0

@78783718

Would you kindly provide complete environment details along with screenshots of the errors you are facing while running the example project. We will investigate the case at our side and share our feedback with you accordingly.

Aspose.PDF-for-.NET /Examples ConvertAllPagesToEMF.Run(),There are other mistakes. You can run them all。
image.png (15.3 KB)

It feels like system.drawing If skisharp is used instead, it will feel better

@78783718

After removing skisharp, is your issue resolved?

Not removing skisharp, but replace

Skisharp in NET Standard2.0 and NET Standard2.1,Net framework version does not change

@78783718

It is good to know that you were able to resolve the issue.

Please let us know in case you face any issue while using the API in .NET Core environment.

ConvertAllPagesToEMF.Run(emfDevice.Process(pdfDocument.Pages[pageCount], imageStream):wink: , there are errors in mono 6.10.104 or mono 6.8.123 and windows

@78783718

We were unable to notice any error in Windows while testing the scenario with Aspose.PDF for .NET 20.8. Would you please make sure to use latest version of the API and in case you still face any issue, please share the screenshots of the error that you are facing. We will again test the scenario in our environment and address it accordingly.