<ul dir="auto">
<li>Electron Version: 2.0.7</li>
<li>Operating System (Platform and Version): Ubuntu 16.04</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
The print task should be sent without showing the system dialog, and it should print the html content.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
it is not doing anything at all.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="secondWindow.webContents.print({silent: true, printBackground : false, deviceName : ''},(success) =&gt; { 
    if(success){
        console.log(success);
        secondWindow = null;
     }
 });"><pre class="notranslate"><span class="pl-s1">secondWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">silent</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">printBackground</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">deviceName</span> : <span class="pl-s">''</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> 
    <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
        <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-s1">secondWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
     <span class="pl-kos">}</span>
 <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">silent : false</code> option is printing the content but not calling the callback function. i don't want the user interaction when something need to be printed.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="secondWindow.webContents.print({silent: false, printBackground : false, deviceName : ''},(success) =&gt; { 
    if(success){
        console.log(success);
        secondWindow = null;
     }
 });"><pre class="notranslate"><span class="pl-s1">secondWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">silent</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">printBackground</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">deviceName</span> : <span class="pl-s">''</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> 
    <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
        <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-s1">secondWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
     <span class="pl-kos">}</span>
 <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>