Relorer / HTMLToQPDF

HTMLToQPDF is an extension for QuestPDF that allows to generate PDF from HTML
MIT License
80 stars 26 forks source link

HTMLToQPDF.Example is crash #5

Open wangjunjx8868 opened 1 year ago

wangjunjx8868 commented 1 year ago

This is an image click "Create pdf" is crash

Serverraum commented 3 months ago

You need to include "QuestPDF.Settings.License = LicenseType.Community; " into the file, when using the newest QPDF. ( e.g. in MainWindow.xaml.cs within the public MainWindow()-Function above InitializeComponent(); Also it throws an error stating "Compose Single doesn't include that Methode". Still doing some research on the origins of that error.

Serverraum commented 3 months ago

Edit: You also have to update QPDF within HTMLtoQPDF AND HTMLtoQPDF.Example.

Also you have to explicitely add SkiaSharp as nuget-Dependency, as this isn't included in QuestPDF anymore.

If you did all these three things, it should work.