Hi, I have been working on a project that uses Spire.Doc to convert docx document to PDF. Whenever there is any form of shapes, tables or images, It will fail with the good old "System.TypeInitializationException: The type initializer for 'Gdip' threw an exception". It is likely because dotnet does not have System.Drawing.Common support on Mac and hence the error. In our case, we can choose what word documents to use for the app and the way we make it work at the moment is by not having objects that requires "drawing" in the word document and somehow make it work. This obviously isn't the best solution of all time, it can get tedious if documents with more complicated structure is involved. So I am wondering if there is any official reliable way to convert docx to pdf on Mac. By that I mean it sort of works but not when there are objects like tables and images. Since it does not work on Mac, I doubt it will work on Linux. To give to a clearer picture, these are the versions, platforms in use and what I have tried.
Local Development Device: Mac mini M1, Macbook Air
Dotnet Version: 8
Spire Doc Version: 13.5.11
Spire PDF Version: 11.7.10
We have paid license.
Already has all the custom fonts loaded.
Fails even if it is a blank document with a blank table in it.
Where it fails: document.SaveToStream(pdfStream, FileFormat.PDF);
Tried setting ToPdfParameterList:
ToPdfParameterList tpl = new ToPdfParameterList { UsePSCoversion = true };
document.SaveToStream(pdfStream, tpl);
Tried `brew install mono-libgdiplus`