thank you @sergei.shibanov. We are using .net 6
@asokratous
I wrote a project with a Xunit test using the code you provided. In my VirtualBox 7.0.8 under Ubuntu 22.04 it works without exceptions. I am attaching a link so that you can download the project and try it with you.
("[[BL]]https://disk.yandex.ru/d/RabGj8UVxhL_mw
[[/BL]]
The project uses the Aspose.Pdf.Drawing library 23.07
On Ubuntu, I installed the libgdiplus package with the commands
sudo apt update
sudo apt install libgdiplus
and package with Microsoft compatible fonts
sudo apt-get install ttf-mscorefonts-installer
I suggest trying to run the attached project in your environment.
Is there any package version that does not use System.Drawing as it is not supported on .NET 8 and later in Linux?
Aspose.PDF.Drawing for .NET is the package that does not use System.Drawing dependency and it is published for Linux like environments.
I switched to Aspose.Pdf.Drawing but our license is only up to v23.8 and it still has a dependency on System.Drawing.Primitives. What version do I need?
Please note that the support is provided on the basis of the latest available version of the API. We always recommend using the latest version because of the maximum fixes and improvements. You can please obtain a 30-days free temporary license to evaluate the latest version of the API and once you are satisfied with it, you can please upgrade your subscription accordingly.