title: Dompdf: how to get background image to show on first page only
body: <p>I am using dompdf to generate letters which I want to brand with various different companies branded paper. To do this I'm getting a background image via css. See example image at bottom. I then set appropriate margins to fit the content I want to write out into the white space. However I just want this letterhead to display on the first page only. At present it is repeating onto each page. My css looks like:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;{$pdf.title}&lt;/title&gt;
  &lt;style type="text/css"&gt;
    @page {
      size: A4;
      margin:0;
      padding: 0;
    }
    body {
      padding: {$branding.page_margin_top}cm {$branding.page_margin_right}cm {$branding.page_margin_bottom}cm {$branding.page_margin_left}cm;
      font-size: 7pt;
      font-family: helvetica !important;
      background-image: url('{$base_url}pd-direct.png');
      background-position: center center;
      background-repeat: no-repeat;
      font-size: 10pt;
    }
    #postal-address {
        margin: 0cm;
        margin-left: {$branding.address_offset_left}cm;
        margin-top: {$branding.address_offset_top}cm;
        margin-bottom: {$branding.address_offset_bottom}cm;
        font-size: 10pt;
    }
    #date {
      font-weight: bold;
    }
  &lt;/style&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
  
      &lt;div id="page-body"&gt;
  
        &lt;div id="content"&gt;
  
          {if $pdf.postal_address}
          &lt;div id="postal-address"&gt;
            {$pdf.postal_address|nl2br}
          &lt;/div&gt;
          {/if}
  
          {$pdf.main_body}
  
        &lt;/div&gt;
  
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I change this so the background image is only displayed on the first page output by dompdf?</p>
  
  <p>See current html being rendered at: <a href="http://eclecticgeek.com/dompdf/debug.php?identifier=ccfb2785f8a8ba3e1e459cbd283ad015" rel="nofollow">http://eclecticgeek.com/dompdf/debug.php?identifier=ccfb2785f8a8ba3e1e459cbd283ad015</a></p>