Idea: Add Window.PrintToPdf silent PDF export API #6046
LianSchedule
started this conversation in
Ideas
Replies: 1 comment
|
Would love this added, only option we have now is use the print dialog which is not good UX, or use a frontend lib which is not desired. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to propose adding a
PrintToPdf()method on the Window API to export webview content silently to a PDF file, without opening the print dialog.The options should match Electron's PDFOptions for easier migration from Electron, and it must support fully‑custom page sizes, not just standard paper sizes.
https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions
Would this be a good candidate for a WEP?
All reactions