<p dir="auto">node:12.0.0<br>
electron: 7.1.1<br>
Silent print settings margins flashback，Flashback occurs if margins are added</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="            margins: {
              marginType: 'custom',
              left: 0
            }"><pre class="notranslate"><code class="notranslate">            margins: {
              marginType: 'custom',
              left: 0
            }
</code></pre></div>
<p dir="auto">complete</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        webview.print(
          {
            silent: true,
            printBackground: true,
            deviceName: this.printDeviceName,
            landscape: true,
            margins: {
              marginType: 'custom',
              left: 0
            }
          }
        )"><pre class="notranslate"><code class="notranslate">        webview.print(
          {
            silent: true,
            printBackground: true,
            deviceName: this.printDeviceName,
            landscape: true,
            margins: {
              marginType: 'custom',
              left: 0
            }
          }
        )
</code></pre></div>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">13.1.2</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10 Version 10.0.19043.1055</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">11.0.0</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Opening a PDF file in a BrowserWindow should <strong>display</strong> the PDF file using Chromium's built-in PDF Viewer.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Opening a PDF file in a BrowserWindow just shows a broken and seemingly half-loaded PDF Viewer with no PDF content in it whatsoever.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This project needs some serious regression testing for crying out loud. How is it possible that things that were already working fine keep breaking all the time and none of the developers care or even notice?</p>