|
@@ -36,6 +36,19 @@ $contentPDF=stripslashes(api_html_entity_decode($_POST['contentPDF'], ENT_QUOTES
|
|
|
$titlePDF=stripslashes(api_html_entity_decode($_POST['titlePDF'], ENT_QUOTES, $charset));
|
|
|
|
|
|
ob_start();
|
|
|
+
|
|
|
+?>
|
|
|
+<page backtop="10mm" backbottom="10mm" footer="page">
|
|
|
+ <page_header>
|
|
|
+ <?php echo $titlePDF.'<br/><hr/>'?>
|
|
|
+ </page_header>
|
|
|
+ <page_footer>
|
|
|
+ <?php echo '<hr/>'; ?>
|
|
|
+ </page_footer>
|
|
|
+ </page>
|
|
|
+
|
|
|
+ <?php
|
|
|
+
|
|
|
echo $contentPDF;
|
|
|
$htmlbuffer=ob_get_contents();
|
|
|
ob_end_clean();
|
|
@@ -77,9 +90,7 @@ ob_end_clean();
|
|
|
|
|
|
|
|
|
|
|
|
-$html2pdf = new HTML2PDF('P','A4',$langhtml2pdf, array(30,25,30,25));
|
|
|
-$html2pdf->pdf->SetMyFooter( 'page','','','' );
|
|
|
-$html2pdf->pdf->SetDisplayMode('real');
|
|
|
+$html2pdf = new HTML2PDF('P','A4',$langhtml2pdf, array(30,10,30,10));
|
|
|
|
|
|
|
|
|
|