Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Failure on .NET 5.0 #46

@PeterN

Description

@PeterN

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions