From eb7846865fa655e5639af87dc4d9ee1c0c844ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Fri, 28 Aug 2009 12:04:20 +0200 Subject: [PATCH] improve the pdf exportation format --- main/wiki/export_html2pdf.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/main/wiki/export_html2pdf.php b/main/wiki/export_html2pdf.php index fdcdb54596..ffcf9741fc 100644 --- a/main/wiki/export_html2pdf.php +++ b/main/wiki/export_html2pdf.php @@ -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();//activate Output -Buffer +/////////////////////// +?> + + +
'?> +
+ + '; ?> + +
+ + pdf->SetMyFooter( 'page','','','' );//page, date, time, form -$html2pdf->pdf->SetDisplayMode('real'); +$html2pdf = new HTML2PDF('P','A4',$langhtml2pdf, array(30,10,30,10));//array (margin left, margin top, margin right, margin bottom) //$html2pdf->pdf->IncludeJS($script); //$html2pdf->pdf->IncludeJS("print(true);"); //$html2pdf->pdf->IncludeJS("app.alert('Generated by Dokeos to PDF');");