title: tcpdf position adding white block at bottom of page
body: <p>As you can see from this screenshot, there a white area about 100 px tall being added to the bottom of the page that is also pushing the whole page up and off the top of the page. I'm trying to get the text to be on the blue area of the page footer, in white text. I've tried several related suggestions and cant get them to work. Any assistance is greatly appreciated!</p>
  
  <p>Screenshot: <a href="http://screencast.com/t/lt3J1Wle76Dm" rel="nofollow">http://screencast.com/t/lt3J1Wle76Dm</a></p>
  
  <p>CODE: </p>
  
  <pre><code>function downloadFile($rid,$count,$userid,$orderid,$email,$user_password,$owner_password) {
      global $wpdb;
  
      $rid = intval($rid);
      $query = "
          SELECT 
          filehash,filename,filesize,productid
          FROM {$this-&gt;dbtable}_product
          WHERE rid = {$rid}
      ";
      $res = $wpdb-&gt;get_results($query);
      $r = $res[0];
  
      $file_location = $this-&gt;getplugindir()."uploads/".$r-&gt;filehash.".file";
      if (!file_exists($file_location)) { exit('File does not exist.'); }
  
      if ($count === true) {
          $res = $wpdb-&gt;query("UPDATE {$this-&gt;dbtable}_product SET download_count = download_count+1 WHERE rid = {$rid}");
          $this-&gt;auditLog($r-&gt;productid, $rid, $userid, 'Downloaded');
      }
  
      $filename = str_replace(' ', '_', $r-&gt;filename);
  
      require_once($this-&gt;getplugindir() . 'fpdf/tcpdf/tcpdf.php');
      require_once($this-&gt;getplugindir() . 'fpdf/tcpdf/tcpdi.php');
      //require_once($this-&gt;getplugindir() . 'fpdf/tcpdf/wpds.php');
  
      if ($orderid === false) { $orderid = '12345'; }
  
      $pdf = new TCPDI();
      $pagecount = $pdf-&gt;setSourceFile($file_location);
      $pdf-&gt;SetAutoPageBreak(false);
  
      for ($i = 1; $i &lt;= $pagecount; $i++){
          $pdf-&gt;addPage();
          $tplidx = $pdf-&gt;importPage($i);
          $pdf-&gt;useTemplate($tplidx);
  
          $pdf-&gt;SetAlpha(0.5);
          $pdf-&gt;SetFont('Courier', 'I', 6);
          $pdf-&gt;SetTextColor(255,0,0);
          $pdf-&gt;SetXY(5, -5);
          /*
          $pdf-&gt;StartTransform();
          $pdf-&gt;Rotate(5);
          */
          $pdf-&gt;Write(0, "This guide individually licensed to $email ($orderid)");
          /*
          $pdf-&gt;Rotate(0);
          $pdf-&gt;StopTransform();
          */
          $pdf-&gt;SetAlpha(1);
      }
  
      $pdf-&gt;SetProtection(array(
          'modify','copy','annot-forms','fill-forms','extract','assemble'
      ),$user_password,$owner_password,3);
      $pdf-&gt;Output($filename,'D');
  
      exit();
  
  }
  </code></pre>