Aspose.PDF PngDevice.Process throws "platform not supported exception" in C# on Mac OS

I am using ASpose.PDF in C# on Mac OS for PDF to image conversion. PngDevice.Process throws exception “System.PlatformNotSupportedException: Operation is not supported on this platform.”

My Code:
try
{
Document document = new Document("/Users/pankaj/Desktop/aa/test/aa.pdf");
for( int count=1; count <= document.Pages.Count; count++)
{
string tmp = “/Users/pankaj/Desktop/aa/aa”;
tmp += count.ToString();
tmp += “.png”;

                Resolution resolution = new Resolution(300);
                PngDevice pngdevice = new PngDevice();// (resolution);
                pngdevice.Process(document.Pages[count], tmp);
                 
                
            }
        }
        catch(Exception e)
        {
            string exp = string.Format("{0} exception caught", e);
        }

Exception:
System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Drawing.Drawing2D.Matrix…ctor (System.Single m11, System.Single m12, System.Single m21, System.Single m22, System.Single dx, System.Single dy) [0x00006] in <568e8dfee76d4c65a8b6ab960abeaf5e>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Drawing2D.Matrix…ctor(single,single,single,single,single,single)
at #=z8scOvMShC1xEMFh$ErV9zpBqw8_wGDDcKJNhjvU=…ctor (System.Single #=zWDkdOyY=, System.Single #=z32uMoNQ=, System.Single #=z0rKQUnA=, System.Single #=zPywVmt8=, System.Single #=zQzrRjX4=, System.Single #=zWkoNids=) [0x00006] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zh2gh7BGs1_9elwbn0TGkyeXW5GgXK9inHw==.#=zURX4h48= (System.Single #=zWDkdOyY=, System.Single #=z32uMoNQ=, System.Single #=z0rKQUnA=, System.Single #=zPywVmt8=, System.Single #=zQzrRjX4=, System.Single #=zWkoNids=, #=zWkf4AD9vdRSa1c65OhmMdgskocyiTyW9RQ== #=zTfE6zLw=) [0x0001f] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zP0w51rEYMdOGRAWsoHgWScTjAYJ5mLpOsy69bY5lfPha.#=zrwT5WldtZc03 (#=zO_mmyHiA5q2pmtzON18$13sH371BG9mwqQ== #=zjhTNXYw=, #=zU5qRpdNB0fE81FZEt4Vb5E3GzxONquCBKDEaKyY= #=zWD2srlo_Ve3B, #=zSxV2qbR87tbabRHV1oggmamR1h2ywsKPGA== #=zVq0hJO8=, System.Single #=ziE4_6wBLkeFL, System.Single #=zBDwUY9VBnVeB, System.Boolean #=zy3VjHRde4G3QC$N00w==, System.Int32 #=zpTLCEqNXDVNev0jIu1fHPhU=, System.Boolean #=zjaa_wCNcvOZe, System.Double& #=zp7jHbW8=, System.Double& #=zeRi1HUo=, #=zDlHpnAkW$PJVgDgZ9uEM7aeOXVK0MvvduA==& #=zXc6xAMQ=) [0x001af] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zP0w51rEYMdOGRAWsoHgWScTjAYJ5mLpOsy69bY5lfPha…ctor (#=zWsGx78$9cb_yLqvAiD9kqAdru2U3 #=zbZYPx9c=, #=zO_mmyHiA5q2pmtzON18$13sH371BG9mwqQ== #=zjhTNXYw=, #=zU5qRpdNB0fE81FZEt4Vb5E3GzxONquCBKDEaKyY= #=zWD2srlo_Ve3B) [0x001df] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zWP$pXuw605HoHeSsqcnXcVrSSeHzS0UJZLSgxCo=.#=zcXfJ$7VWC1HG (#=zWsGx78$9cb_yLqvAiD9kqAdru2U3 #=zbZYPx9c=, #=zO_mmyHiA5q2pmtzON18$13sH371BG9mwqQ== #=zjhTNXYw=, #=zU5qRpdNB0fE81FZEt4Vb5E3GzxONquCBKDEaKyY= #=zWD2srlo_Ve3B) [0x00000] in <2cba31dd354b407fced730edcca11c8e>:0
at #=z7dhpk_vfEIz7FfPz6cbysN2Nf$sbQdmzGJblFZb7gfpq.#=zntu3$XA= (#=zWsGx78$9cb_yLqvAiD9kqAdru2U3 #=zbZYPx9c=, #=zO_mmyHiA5q2pmtzON18$13sH371BG9mwqQ== #=zjhTNXYw=, #=zU5qRpdNB0fE81FZEt4Vb5E3GzxONquCBKDEaKyY= #=z_pl3ZwI=, #=zP0w51rEYMdOGRAWsoHgWScTjAYJ5mLpOsy69bY5lfPha& #=zuyF8cUI=) [0x0001d] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zAqMoIDJavVLAXtkhWhzKbIyVdWRm.#=zFyVMPj8= (#=zP0w51rEYMdOGRAWsoHgWScTjAYJ5mLpOsy69bY5lfPha& #=zuyF8cUI=) [0x00629] in <2cba31dd354b407fced730edcca11c8e>:0
at #=zAqMoIDJavVLAXtkhWhzKbIyVdWRm.#=zFyVMPj8= () [0x00000] in <2cba31dd354b407fced730edcca11c8e>:0
at Aspose.Pdf.Devices.ImageDevice.#=zFyVMPj8= (Aspose.Pdf.Page #=zjhTNXYw=) [0x00057] in <2cba31dd354b407fced730edcca11c8e>:0
at Aspose.Pdf.Devices.PngDevice.Process (Aspose.Pdf.Page page, System.IO.Stream output) [0x00000] in <2cba31dd354b407fced730edcca11c8e>:0
at Aspose.Pdf.Devices.PageDevice.Process (Aspose.Pdf.Page page, System.String outputFileName) [0x00010] in <2cba31dd354b407fced730edcca11c8e>:0
at Test.ViewController.Test () [0x0017f] in /Users/pankajsanga/Projects/Test/Test/ViewController.cs:120

@sangapankaj,

Thanks for contacting support.

Can you please share source file so that we may further investigate to help you out.

I have attached pdf file.

aa.pdf (5.4 MB)

@sangapankaj,

We have worked with source code and sample file shared by you using Aspose.PDF latest version 19.12 and unable to observe the issue. Can you please share environment details with us for further investigation.

I am using C# in Visual Studio 2019 or MAC.

OS: MAC OS Mojave 10.14.3

Aspose.PDF: version 19.12.0

@sangapankaj

Would you kindly make sure that you have installed all MS Core fonts and libgdi package in your environment. In case you are still facing the issue after installing them, please let us know.