How to make pdf exact 10CM width with DOMPDF and Laravel?
<p>I am creating a PDF with <a href="https://github.com/barryvdh/laravel-dompdf" rel="noreferrer">DOMPDF</a> and laravel.</p>

<p>The pdf is being printed with a special printer that only accepts files with 10CM width and 20CM height.</p>

<p>I have tried this:</p>

<pre><code>$customPaper = array(0,0,720,1440);
$pdf = PDF::loadView('pdf.retourlabel',compact('retour','barcode'))-&gt;setPaper($customPaper);
</code></pre>

<p>Since 11X17 is</p>

<pre><code>"11x17" =&gt; array(0, 0, 792.00, 1224.00),
</code></pre>

<p>I figured 10X20 was 0,0720,1440</p>

<p>But it's not working.</p>

<p>Any help is appreciated.</p>

<p>Thanks in advance</p>