title: Add main header on first page only in TCPDF
body: <p>I am developing a pdf page using <code>tcpdf</code> to display certain data in <code>codeigniter</code>. It shows the data. But not in the format which I need. Now it shows data with a common header in all pages. </p>
  
  <p><b>I need to show the main header only on the first page and the rest of the data with another sub header</b></p>
  
  <p>My code in the controller is</p>
  
  <pre><code>&lt;?php
  tcpdf();
  $obj_pdf = new TCPDF('L', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  $obj_pdf-&gt;SetCreator(PDF_CREATOR);
  $title = 'Main title';
  $obj_pdf-&gt;SetTitle($title);
  $obj_pdf-&gt;SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $title, PDF_HEADER_STRING);
  
  $obj_pdf-&gt;setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
  $obj_pdf-&gt;setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
  $obj_pdf-&gt;SetDefaultMonospacedFont('helvetica');
  $obj_pdf-&gt;SetHeaderMargin(PDF_MARGIN_HEADER);
  $obj_pdf-&gt;SetFooterMargin(PDF_MARGIN_FOOTER);
  $obj_pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
  $obj_pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
  $obj_pdf-&gt;SetFont('helvetica', '', 9);
  $obj_pdf-&gt;setFontSubsetting(false);
  
  $obj_pdf-&gt;AddPage();
  ob_start();
  // we can have any view part here like HTML, PHP etc
  
  $tbl = &lt;&lt;&lt;EOD
  $pdf_cont
  EOD;
  
  $obj_pdf-&gt;writeHTML($tbl, true, false, false, false, '');
  
  ob_end_clean();
  
  $obj_pdf-&gt;Output('sample.pdf', 'I');
  </code></pre>
  
  <p>here the variable <code>$pdf_cont</code> contains a large table to show. I can't check(or i don't know how to do it properly) in which page I am and set the header data. Please help me to add the main header on the first page and another header on the rest on pages.</p>
  
  <p>Thank you in advance...</p>