<?php

  // This code adds a basic tcpdf footer call to a page.
  
  // This code takes the output buffer's contents
  // created in the TCPDF Single Page Header Include
  // code block and outputs a PDF to the browser.


  // capture output buffer, turn off buffering
  $html = ob_get_flush();
  
  // erases the buffer, turns it off
  ob_clean ();
  
  // output the HTML content
  $pdf->writeHTML($html, true, false, true, false, '');
  
  // output PDF to browser
  $pdf->Output('Form Page.pdf', 'I');
  
  // Optional
  //clear_fb_session();
  
?>