<ul dir="auto">
<li>Electron version: 1.8.4, 1.7.13</li>
<li>Operating system: Debian 9</li>
<li>CUPS: 2.2.1</li>
</ul>
<p dir="auto">Hey,</p>
<p dir="auto">In my project I'm using printer Custom VKP80 in which 80mm thermal paper is used.<br>
I'm running my electron application on Debian 9. The printer is added in cups and configured to use 80mm paper. Also the printer is marked as default printer.<br>
According to application logic printing should be performed silently. So I'm using option {silent:true}. But with this option Electron (or Chromium inside Electron) does not use configured cups settings and prints only part of html document. Printed receipt looks like only left part of "virtual" A4 paper (like 80mm from left side of A4 is printed).<br>
If set {silent:false} and NOT touch any settings in printing dialog and just press "Print" button then printed receipt looks like expected, i.e. cups settings are used.</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Electron uses printer settings during printing with option {silent:true}</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Electron does not use cups settings during printing with option {silent:true}</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Configure some non-standard printer in linux using cups.</li>
<li>Call someWindow.webContents.print({silent:true})</li>
</ol>
<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.9</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</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"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">when silent is true  if deviceName not empty  is with deviceName settings for printing<br>
options  copies  setting  can take effect</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">printWindow.webContents.print({<br>
silent: true,<br>
printBackground: false,<br>
deviceName: deviceName,<br>
}, (success, errorType) =&gt; {<br>
if (!success) {<br>
console.log(errorType)<br>
}<br>
})</p>
<p dir="auto">when silent is true  deviceName is not Not effective<br>
when silent is true  copies is not effective too</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"><em>No response</em></p>