HTML to PDF not working in docker container

Hi,

I am trying to convert HTML string to PDF using aspose.pdf in c# .net core 3.1. We have license for aspose. The code is working fine in local but when its trying to execute in container after deployment its throwing error as System.Drawing.Common is not supported on this platform

If you use a Linux-based container, please switch to Aspose.PDF.Drawing

You can find some helpful information here: How to run Aspose.PDF in Docker|Aspose.PDF for .NET

Hey Thanks for quick response. Will it work for .net core 3.1 instead of .net 6 or 7?

Aspose.PDF.Drawing supports .NET Core 3.1 on Linux.
The requirements for Linux-based containers are libgdiplus and packages ttf-mscorefonts-installer and fontconfig.