In the cross-platform project of .Net 7, Spire.pdf.dll strongly depends on System.Drawing.Common. Microsoft officially prohibited the use of libgdiplus on non-Windows systems since Net 7 and later versions. This directly led to the inability to use System.Drawing.Common. So, when will Spire.pdf stop using System.Drawing?Or there may be other solutions that can be used in Linux with Spire.pdf?
microsoft:
Starting in .NET 7, the System.Drawing.EnableUnixSupport switch has been removed and you can no longer use the System.Drawing.Common package on non-Windows operating systems.
Error in Linux:
[16:29:00 ERR] The type initializer for 'Gdip' threw an exception.
System.TypeInitializationException: The type initializer for 'Gdip’threw an exception.
--> System.PlatformiNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms.