I need to convert a HTML content to PDF, I was using Html.ConvertToHTML for that on .NET 5 but after updating to .NET 6 the conversion throws a System.TypeInitializationException.
image.png (31.6 KB)
Here you have a sample to reproduce the issue :
HtmlToPdf.ConvertHTML.NET6.zip (1.9 KB)
And here the same code with .NET 5 that is working
HtmlToPdf.ConvertHTML.NET5.zip (10.3 KB)