I am running a Dotnet core app (3.1) on a Mac (Catalina) and I’m trying to add an image to a PDF using this tutorial: https://docs.aspose.com/pdf/net/manipulate-images/.
I get an error when trying to add the imageStream.
"Invalid image stream (The type initializer for ‘Gdip’ threw an exception.)’.
Doing my research, this appears to be related to needing the libgdiplus library. I installed this with
brew install mono-libgdiplus but I am still getting this error.
Sample Project that can replicate the issue: https://github.com/duyn9uyen/aspose-add-image-to-pdf
Can someone help?