ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

How to use pdfsharpcore in MAUI? #380

Open Percylevent opened 1 year ago

Percylevent commented 1 year ago

when I use pdfsharpcore in MAUI , I got a ERROR when running the first step example. Here is the error: System.NotImplementedException: 'FontResolver not implemented for this platform (PdfSharpCore.Utils.FontResolver.cs).'

daydar-ilx commented 1 year ago

It seems that you have not implemented a class for the interface IFontResolver.

See more: example implementation from the documentation

tossnet commented 1 year ago

Look at my approach with Blazor... I think you'll can find a solution https://github.com/tossnet/Blazor-PdfSharpCore