title: tcpdf - background image - CakePdf
body: <p>I am trying to setup pdf generation with a background image using CakePdf and the TcPdf engine. I have managed to get the image onto the background using the following settings:</p>
  
  <pre><code>// set background image
  $img_file = APP . 'webroot/img/BC_Letterhead.jpg';
  $TCPDF-&gt;Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);
  </code></pre>
  
  <p>The problem is the image does seem to cover the full background. It seems to be about 1 inch short to the right and about 2 inches short of the bottom of the page. The image I am using is the correct size (I double checked it)</p>
  
  <p>Could this be a margin issue or similar?</p>
  
  <p>Thanks</p>