title: How to retrieve current page HTML code from Footer() method in TCPDF?
body: <p>I'm using TCPDF to render some report generated through a sequence of HTML tables. These tables contain some tracking code I want to parse from Footer() method and add to current page footer. Any idea how to get the html code of the current page from TCPDF ?</p>
  
  <p>I'm basically doing this:</p>
  
  <pre><code>class SVNPDF extends TCPDF {
  
          // Page footer
          public function Footer() {
  
              // Position at 15 mm from bottom
              $this-&gt;SetY(-15);
              // Set font
              $this-&gt;SetFont('helvetica', 'I', 10);
              // Page number
              $this-&gt;Cell(0, 10, 'Page '.$this-&gt;getAliasNumPage().'/'.$this-&gt;getAliasNbPages(), 0, false, 'R', 0, '', 0, false, 'T', 'M');
  
              $this-&gt;SetY(-15);
              $this-&gt;SetFont('helvetica', 'I', 10);
              $this-&gt;Cell(0, 10, 'Picking #'.$glb_picking_num.'', 0, false, 'L', 0, '', 0, false, 'T', 'M');
  
              // HERE I NEED TO RETRIEVE CURRENT PAGE HTML CONTENT AND EXTRACT THE TRACKING NUMBER INSIDE FOR DISPLAY IN CURRENT FOOTER
          }
  }
  
  $report = 'SOME LONG HTML CODE HERE';
  $pdf = new SVNPDF('L', 'mm', 'A4', true, 'UTF-8', false);
  $pdf-&gt;AddPage();
  $pdf-&gt;writeHTML($report, true, false, true, false, '');
  $pdf-&gt;Output(dirname(__FILE__) . '/test.pdf', 'I');
  </code></pre>