Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Thu Apr 04, 2024 1:24 pm

We recently upgraded from .net 5 to .net 6 on Linux on docker to generate powerpoints but it's failing. It seems like its something to do with System.Drawing and fontmaps?

How do we run .net 6 or above on a non-windows machine without getting this error?

Our current setup (upgrading to .net 6 causes problems).
"Microsoft.AspNetCore.Http.Features" Version="5.0.6"
"Spire.Presentation" Version="8.7.0"
"System.Drawing.Common" Version="4.6.0"

Thanks!

majeed_s
 
Posts: 80
Joined: Thu Mar 25, 2021 4:13 pm

Fri Apr 05, 2024 3:45 am

Hi,

Thank you for your inquiry.
Kindly note our Spire.Presentation provides the NET6 dlls, which has dependency on the System.Drawing.Common, this library is not supported on non-windows operating system from NET6.

Besides, our netstandard dll in Spire.Presentation uses the SkiaSharp to replace the System.Drawing.Common. It can work with non-windows operating system. Please download the Spire.Presentation from our website(the latest version is Spire.Presentation Pack(hot fix) Version: 9.3.4), and manually add the DLLs from the folder “netstandard2.0” into your project, then install the following dependencies from Nuget.

Code: Select all
SkiaSharp >= 1.68.0
System.Text.Encoding.CodePages >= 4.5.0
System.Security.Cryptography.Xml >=4.5.0


If there is still any questions, please feel free to write back.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Wed Apr 17, 2024 6:01 am

running Docker on Linux (with .NET 6) we thought it would be a smooth move until we met a problem of generating a PowerPoint. It's putting via System.Drawing and fontmaps error The Entity Framework is a part of the .NET Framework which is a powerful framework for building web applications. Here is how we run .NET 6+ on a non-Windows setup. Currently our solid config however, .NET 6 update causing not smooth running.

PixelPioneer
 
Posts: 5
Joined: Fri Apr 12, 2024 6:43 am

Wed Apr 17, 2024 7:21 am

PixelPioneer wrote:running Docker on Linux (with .NET 6) we thought it would be a smooth move until we met a problem of generating a PowerPoint. It's putting via System.Drawing and fontmaps error The Entity Framework is a part of the .NET Framework which is a powerful framework for building web applications. Here is how we run .NET 6+ on a non-Windows setup. Currently our solid config however, .NET 6 update causing not smooth running.


Hi,

Thanks for your inquiry.
Just like my solution above, you need the standard version of spire.Presentation.dll, as shown in the following screenshot
44.png


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Presentation