title: TCPDF - Having footer/header on certain pages only
body: <p>I want to place the footer section on every page of my document except the first one. </p>
  
  <p>I created my custom footer by extending the TCPDF class and overriding its footer method.</p>
  
  <p>Then based on the documentation and using below example I understand I should use SetPrintHeader and SetPrintFooter methods:</p>
  
  <p><a href="http://www.tcpdf.org/examples/example_002.phps" rel="nofollow">http://www.tcpdf.org/examples/example_002.phps</a></p>
  
  <pre><code>// Page one
  
  $pdf-&gt;SetPrintHeader(false);
  $pdf-&gt;SetPrintFooter(false);     
  $pdf-&gt;AddPage();
  
  // Page two and on ..
  
  $pdf-&gt;SetPrintHeader(true);
  $pdf-&gt;SetPrintFooter(true);     
  $pdf-&gt;AddPage();
  </code></pre>
  
  <p>However, the above does not prevent the footer/header from being printed at all! </p>
  
  <p>What am i doing wrong here ?</p>
  
  <p>Thanks a million in advance !!</p>