PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 5:05 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jul 07, 2022 11:37 am 
Offline

Joined: Thu Jul 07, 2022 11:33 am
Posts: 2
I am using .NET 6 app which is hosting in docker linux.
When I run PdfSharp.Drawing.FontHelper.CreateFont then I get error

The type initializer for 'Gdip' threw an exception. System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
Breaking change: System.Drawing.Common only supported on Windows - .NET
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer support on non-Windows operating systems.

Is there any way to use System.Drawing.Common is linux-based container?
Maybe someone has a solution to this problem?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 07, 2022 2:32 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
There is not official build of PDFsharp for .NET 6 yet.
There are third-party ports you can use.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 07, 2022 4:15 pm 
Offline

Joined: Thu Jul 07, 2022 11:33 am
Posts: 2
() => true wrote:
There are third-party ports you can use.


Could you write what are the third-party ports, please?


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 08, 2022 10:30 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
dziulev wrote:
Could you write what are the third-party ports, please?
I could google them for you, but since I haven't tried any of them, there is no library I can really recommend.
Expect some differences with image handling or font handling between the official library and the third-party ports.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 29, 2022 8:29 am 
Offline

Joined: Fri Jul 29, 2022 8:27 am
Posts: 1
I have made a pull request here: https://github.com/CLMSUK/PDFsharp/pull/1

It replaces System.Drawing.Common with Image processing from SixLabors. It is not perfect


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group