You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
First of all, thank you very much for this project. :)
As a devleoper, I would like to have the option to print a page "silently", meaning without showing the print dialog.
This is usually used in kiosk environments, e.g. for printing photos.
Silently prints the current top-level document in the WebView2 using optional programmatically specified print settings to a printer. You can use this to build your own Print Preview dialog or print experience.
Do you know how electron implemented it? My guess is "outside the browser"...
The closest I can find is the Print method in electron_api_web_contents.cc, which collects the options and forwards the job to a print_task_runner_.
Activity
leaanthony commentedon Feb 15, 2024
Great suggestion 👍 Do you know how electron implemented it? My guess is "outside the browser"...
cstenglein commentedon Feb 15, 2024
Since you are using WebView2 for the windows part, you could print silently there:
https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/print?tabs=win32cpp#the-print-method-to-customize-printing
See the
Printstatement:The closest I can find is the
Printmethod in electron_api_web_contents.cc, which collects the options and forwards the job to aprint_task_runner_.Relent97 commentedon Jul 10, 2025
Hi guys, please is there a PR where this was eventually resolved? Would be great to see the config thank you so much!
leaanthony commentedon Jul 12, 2025
No but if you find out how to do it, that would be great.
leaanthony commentedon Feb 1, 2026
This feature request has been added to our v3 Backlog. As v3 is now our primary focus, all feature development is being directed there.
You can track progress on the v3 Backlog project board: v3 Backlog
Thanks for your patience!
LianSchedule commentedon Aug 30, 2026
Dear Developer, could you also add the API printToPDF while developing this feature? Thank you very much.
taliesin-ai commentedon Oct 15, 2026
Hi there! Thanks for the suggestion. I'll leave this open for us to consider when planning future work.