Linux Print to PDF error: Empty size value returned

Issue #2199 resolved
spajak
created an issue

Hi,

I'm getting the following error on Linux 64 when trying to print to PDF with CefBrowserHost::PrintToPDF call:

Release:

[0617/105916.047453:ERROR:print_dialog_linux.cc(128)] Empty size value returned in GetPdfPaperSize; PDF printing will fail

Debug:

[0617/104803.903820:FATAL:print_handler_ctocpp.cc(154)] Check failed: browser.get(). 
Aborted

My specs:

Compiler:

The CXX compiler identification is GNU 6.3.0
cmake/ninja

CEF:

cef_binary_3.3071.1640.g1ebbf3c_linux64

Impl. (never called):

CefSize PrintHandler::GetPdfPaperSize(CefRefPtr<CefBrowser> browser, int device_units_per_inch)
{
    DLOG(INFO) << "PrintHandler::GetPdfPaperSize: " << device_units_per_inch;

    return CefSize(21000, 29700);
}

Comments (1)

  1. Log in to comment