MPdf - Full page size image, but only for single page
<p>I know there are similar questions, but non of them solve my problem. What i want to do with mPDF is the following:</p>

<pre><code>Page 1: Text for item 1
Page 2: Full width and height image to cover the page with an image of item 1
Page 3: Text for item 2
Page 4: Full width and height image to cover the page with an image of item 2
...
</code></pre>

<p>The following code stretches an image in the way, I want to achieve:</p>

<pre><code>    body {
        background-image:url("image1.jpg");
        background-image-resize: 5;
        background-position: top center;
    }
</code></pre>

<p>But this results to set the image on EVERY page (i know, its the body element). So i tried the following:</p>

<pre><code>&lt;div style='
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:url("image1.jpg");
        background-image-resize: 5;
        background-position: top center;
    '&gt;&lt;/div&gt;
</code></pre>

<p></p>

<p>But that is not working. So i tried the same code, just with an color, instead an image:</p>

<pre><code>    &lt;div style='
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #F00;
        '&gt;
    &lt;/div&gt;
    &lt;div style="page-break-before: always;"&gt;&lt;/div&gt;
</code></pre>

<p>And this is working. The whole page is red. So how to achive the same with an image?</p>

<p>Any ideas?</p>