title: MPDF full page background
body: <p>I spent way too much time on this and I can't figure out a good 21th century solution.</p>
  
  <p>Simply I have to generate a business card in PDF with a background image, but MPDF isn't very helpful.</p>
  
  <p>By default I had:</p>
  
  <pre><code>@page{
      sheet-size: 90mm 55mm;
      margin: 0;
  }
  </code></pre>
  
  <p>I tried to:</p>
  
  <ul>
  <li>use @page{ background-size: 100%; } <code>doesn't work</code></li>
  <li>use @page{ background-size: cover; } <code>doesn't work</code></li>
  <li>resize the image - even if I set the right size in 'mm', it will be smaller or larger, even if I set the <strong>background-image-resolution</strong> to the same value as the image.</li>
  <li>place <strong>absolute</strong> positioned <code>div</code> with background image</li>
  <li>same but with <code>img</code> tags, using <code>src</code> attribute.</li>
  </ul>
  
  <p>At the last option, I've got a really strange thing. It showed the whole image but in a small rectangle in the pages, but not even in full height.</p>
  
  <p><strong>Does anyone have an idea, how to simply use an image as a page background?</strong></p>