We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF without dependency on System.Drawing

I understand that Aspose.PDF for .NET requires System.Drawing, and as a result requires libgdiplus on Linux.

We see this as a risk since libgdiplus isn’t really officially maintained and even Microsoft doesn’t recommend it’s use (https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).

Is there a near term plan to eliminate dependency on System.Drawing and instead use Aspose.Drawing or SkiaSharp?


We already logged a ticket to test Aspose.PDF functionality under .NET 6.0 in non-Windows environments as PDFNET-50918. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Thanks, Tahir.

What exactly is PDFNET-50918 about? I’m not sure how to view it, I just see it’s marked as Resolved.

Which release is it planned to be included into?


The issue PDFNET-50918 has been resolved and its fix will be available in the next version of Aspose.PDF for .NET i.e. 23.1. We will inform you via this forum thread once it is released.

Thank you, Tahir.

My question though is what does PDFNET-50918 achieve or what is it about? I’m not getting the impression that that ticket addresses my concern, which is running Aspose.NET on Linux free of dependency from libgdiplus.


Aspose.PDF.Drawing NuGet package has been released. The DLL in this package does not have System.Drawing.Common dependency.

Hi Tahir,

Sorry, but I’m not getting the full picture here. Does that mean that Aspose.PDF v23.1 also wouldn’t have any dependency on System.Drawing.Common?


Yes, your understanding is correct. We removed the dependency of System.Drawing.Common from Aspose.PDF for .NET 23.1.