pablopioli / Blazor-QuestPDF

A sample of how to use QuestPDF in Blazor WebAssembly
4 stars 1 forks source link

Run using latest version of QuestPDF and SkiaSharp.Views.Blazor #1

Open MattParkerDev opened 2 years ago

MattParkerDev commented 2 years ago

I can't get this to run when using the latest version of these packages. Can you try?

pablopioli commented 2 years ago

The tooling has changed a lot since the previews used. Also QuestPDF now uses an advanced font handling that requires HarfBuzz.

I couldn't compile it anymore with NET 6 and I guess it's just not possible. So I updated the project to NET 7. You can find a working version in the Dotnet7 branch.

When they release the first RC I will update the main branch and QuestPDF documentation, as you need to configure more things now. See the csproj of the sample for details.

KaniSchotski commented 1 year ago

Hi Pablo. Looking foward to your update. QuestPDF looks like a great tool.

pablopioli commented 1 year ago

The .NET team was changing things even in the Release Candidates (guess they run out of time in betas), so I decided to wait until lunch.

Version 7 will be released on 8 of November, so in a few days I will just use the final version.

For now you can check this branch https://github.com/pablopioli/Blazor-QuestPDF/tree/Dotnet7

pablopioli commented 1 year ago

By the way, they are making the WASM tools retrocompatible with .NET 6. I need to learn how this works but installing the .NET 7 SDK should be the only requirement if you need to stay on version 6.

KaniSchotski commented 1 year ago

Hi Pablo. I do not know if you had to rework the QuestPDF solution for Blazor, but I downloaded it and it seems to work under .NET7. Thanks for your help !