Hi,
On updating my code to run on .NET 5.0, the following error occurs:
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
System.Exception: QPainter::begin(): Returned false
Exit with code 1, due to unknown error.
at Wkhtmltopdf.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html)
at Wkhtmltopdf.NetCore.GeneratePdf.GetPDF(String html)
The same code is working fine with dotnet 3.1.
Possibly related to this wkhtmltopdf/wkhtmltopdf#3119 in wkhtmltopdf itself, however it is the same version of wkhtmltopdf that works with 3.1 but not 5.0.
This issue happens with dotnet on Linux. Under Windows there is no issue with .NET 5.0
Hi,
On updating my code to run on .NET 5.0, the following error occurs:
The same code is working fine with dotnet 3.1.
Possibly related to this wkhtmltopdf/wkhtmltopdf#3119 in wkhtmltopdf itself, however it is the same version of wkhtmltopdf that works with 3.1 but not 5.0.
This issue happens with dotnet on Linux. Under Windows there is no issue with .NET 5.0