I am currently in the process of migrating a .Net Framework project to .Net 7. In addition the projects should also run in Dockers.
One of the project ist an imaging rendering project. In this project different input formats like WORD, EXCEL and PDF are rendered to an PNG or JPG image.
For this we use the aspose products. The migration to .Net 7 was not the problem, the problem is Dockers.
Every time a file should rendered by Aspose for example Slides I get following error message:
Aspose.Slides.PptxReadException: “The type initializer for ‘Gdip’ threw an exception.”
PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
In the documentation of aspose I don’t find any hint to solve this problem.
I hope you can help me.
Thanks and best regards,