Signal QWebEnginePage::loadFinished
has a bool ok
parameter and signal QWebEnginePage::pdfPrintingFinished
has a bool success
parameter that indicate if there was an error. But both signals don't have any additional error information. Is there a way to get detailed error information about HTML parsing and PDF creation?
I want to convert a self generated HTLM document to a PDF with a QWebEnginePage. Sometime it works, but sometimes loadFinished
has ok = false
and the web page is empty. When I save the HTML, Chrome can load it without problems.
PDF generation can always fail for a variety of file system issues and I want to give the user hints how to fix these issues.