Print a PDF with Electron
<p>On my electron app, I have 2 buttons, one to download a PDF file and one to print it.</p>

<p><code>win.webContents.print();</code> starts a printing job but prints the content of the window (i.e. my 2 buttons). </p>

<p>Is there a way to start a printing job with the content of my PDF without displaying this PDF in a new window?</p>

<p>Thanks for your help.</p>