title: PDF not using half the page - TCPDF
body: <p>I am trying to create a pdf label - 2.4&quot; x 2.4&quot;. I am using TCPDF to create it, but I am having a tough time getting it to put the QR code at the bottom right. I can only get it into the middle of the label, any lower it puts it on another page.</p>
  <pre><code>require_once('tcpdf_include.php');
              
  $pdf = new TCPDF('L', 'mm', array('64','64'), true, 'UTF-8', false);
  
  $pdf-&gt;SetCreator(PDF_CREATOR);
  $pdf-&gt;SetAuthor('Me');
  $pdf-&gt;SetTitle('Tag');
  
  $pdf-&gt;setPrintHeader(false);
  $pdf-&gt;setPrintFooter(false);
   
  $pdf-&gt;SetMargins(0, 0, 0, true);
  
  $pdf-&gt;AddPage();
  
  $toolcopy = '&lt;span style=&quot;font-size:34px&quot;&gt;'.$cate[$id]['short'].'-'.$string.'&lt;/span&gt;&lt;br/&gt;';
              
  $toolcopy .='&lt;span style=&quot;font-size:10px;text-align:left;&quot;&gt;Category: '.$cate[$id]['long'].'&lt;br/&gt;Date: '.date('m/d/Y', strtotime($date)).'
                  &lt;/span&gt;';
      
              
  $style = array(
      'border' =&gt; false,
      'vpadding' =&gt; 'auto',
      'hpadding' =&gt; 'auto',
      'fgcolor' =&gt; array(0,0,0),
      'bgcolor' =&gt; false
  );
  
  $codes = 'website';
              
  $pdf-&gt;writeHTML($toolcopy, false, 0, false, 'L');
  $pdf-&gt;write2DBarcode($codes, 'QRCODE,L', 30,15,25,25, $style, 'N');
             
  $filename = $string.&quot;.pdf&quot;; 
  
  $filelocation = dirname(__FILE__).&quot;/labels&quot;; 
  $fileNL = $filelocation.&quot;/&quot;.$filename; 
  
  $pdf-&gt;Output($fileNL, 'F');
  </code></pre>