title: window.print() to generate PDF with electron
body: <p>I have an Angular application, where you can calculate a couple of things and finally generate a result page which can be printed/ exported to pdf via <strong>window.print()</strong>. This also works totally as expected.</p>
  
  <p>But we built also a desktop version of this application with Electron now. If I want to print/ export the result page in the Electron app the windows print popup opens (<a href="https://www.aspsnippets.com/Handlers/DownloadFile.ashx?File=254e9db2-d903-4ca2-9cac-90e7fe2742ea.png" rel="nofollow noreferrer">compare this image</a>) where I can only choose a printer but there is no option to export it to pdf instead.</p>
  
  <p>Is there any way to still use window.print() and add a posibility to export it to pdf (basically like the window.print() version in the web)?</p>