<?php
ob_start();
?>
<page backtop="7mm" backbottom="7mm" backleft="10mm" backright="10mm">
<page_header>
Page Header
</page_header>
<page_footer>
Page Footer
</page_footer>
Page Content
</page>
<?php
$content = ob_get_clean();
require_once('./html2pdf.class.php');
$pdf = new HTML2PDF('P','A4','fr', array(mL, mT, mR, mB));
$pdf->WriteHTML($content);
$pdf->Output();
?>