Silent printing
Posted: Mon Feb 22, 2021 9:01 am
I am having a look at printing (to an actual printer) using CEF, with the aim of being able to print not just webpages, but also PDF files, as when running server-side, I would tend to trust more Chromium when it comes to security than the various PDF components out there.
Interactive printing works fine, but I have a few issues for automated printing
[*] there is an interactive printer selection/settings dialog
[*] the various OnPrint events do not seems to fire, and the code that calls these events does not seem to be called either
[*] therefore there is no feedback on the progress of printing
[*] when printing from a console browser (ConsoleBrowser2) there is only a gray bar on top getting printed
The print dialog should be solvable with a hack (sending windows messages directly to it to simulate user actions) in case there is no way to disable it, not ideal, but I could live with that.
Interactive printing works fine, but I have a few issues for automated printing

[*] there is an interactive printer selection/settings dialog
[*] the various OnPrint events do not seems to fire, and the code that calls these events does not seem to be called either
[*] therefore there is no feedback on the progress of printing
[*] when printing from a console browser (ConsoleBrowser2) there is only a gray bar on top getting printed
The print dialog should be solvable with a hack (sending windows messages directly to it to simulate user actions) in case there is no way to disable it, not ideal, but I could live with that.