Skip to content

Print Preview still does not load for some websites #3768

Closed
@jasminjasmin2

Description

@jasminjasmin2

Print preview does not work in cefclient 127 and the ''Loading preview.." message never disappears when trying to print https://www.corriere.it/ website but it works for other websites.

Programmatically, in custom windowsless applications calling the PrintToPDF() function, the OnPdfPrintFinished() callback is never called and the printer process never finishes.

To Reproduce
Steps to reproduce the behavior:

  1. Launch cefclient.exe --use-alloy-style --enable-print-preview --disable-features=PrintCompositorLPAC
  2. Load https://www.corriere.it/ website in cefclient
  3. Select Print from menu
  4. Print Preview never finishes loading

Versions (please complete the following information):

  • Windows 10, 11
  • CEF Version: 127.3.1

Additional context

In the case of some other websites, like www.gsp.ro, when trying to print to pdf in custom windows-less applications, setting the browser window rectangle to a quite large height, like 25,000 pixels, also makes the printer process to hang. Not sure if the issues are related. Setting a large browser window for such websites is necessary if the resources loading is triggered only for elements inside the viewport.

The issue does not reproduce with Chrome 127.0.6533.99

Metadata

Metadata

Assignees

No one assigned

    Labels

    alloy-styleRelated to Chrome runtime + Alloy stylebugBug reporthelp wantedIssue resolution will likely require community contributionswindowsWindows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions