7Fermer9
SpipuLe 08/02/2011 à 10:41
chez moi ca marche impeccable :
<?php ob_start(); ?> <style type="text/css"> <!-- table.page_header {width: 100%; border: none; background-color: #f7f7f7; border-bottom: 1px #cccccc solid; padding: 2mm;} table.page_footer {width: 100%; border: none; background-color: #f7f7f7; border-top: 1px #cccccc solid; padding: 2mm;} --> </style> <page backtop="14mm" backright="10mm" backbottom="14mm" backleft="10mm"> <page_header> <table class="page_header"> <tr> <td style="width: 50%; text-align: left"> PmWiki </td> <td style="width: 50%; text-align: right"> Page: Main/HomePage </td> </tr> </table> </page_header> <page_footer> <table class="page_footer"> <tr> <td style="width: 33%; text-align: left;"> <a href="http://pmwiki.dev.stephane-huc.net/Main/HomePage"> pmwiki.dev.stephane-huc.net </a> </td> <td style="width: 34%; text-align: center"> page [[page_cu]]/[[page_nb]] </td> <td style="width: 33%; text-align: right"> Copyright: 2011 </td> </tr> </table> </page_footer> <p>Welcome to <span class='wikiword'><a class='wikilink' href='http://pmwiki.dev.stephane-huc.net/PmWiki/PmWiki'>Pm Wiki</a></span>! </p> <p class='vspace'>A local copy of <span class='wikiword'>Pm Wiki</span>'s documentation has been installed along with the software, and is available via the <a class='wikilink' href='http://pmwiki.dev.stephane-huc.net/PmWiki/DocumentationIndex'>documentation index</a>. </p> <p class='vspace'>To continue setting up <span class='wikiword'>Pm Wiki</span>, see <a class='wikilink' href='http://pmwiki.dev.stephane-huc.net/PmWiki/InitialSetupTasks'>initial setup tasks</a>. </p> <p class='vspace'>The <a class='wikilink' href='http://pmwiki.dev.stephane-huc.net/PmWiki/BasicEditing'>basic editing</a> page describes how to create pages in <span class='wikiword'>Pm Wiki</span>. You can practice editing in the <a class='wikilink' href='http://pmwiki.dev.stephane-huc.net/Main/WikiSandbox'>wiki sandbox</a>. </p> <p class='vspace'>More information about <span class='wikiword'>Pm Wiki</span> is available from <a class='urllink' href='http://www.pmwiki.org' title='' rel='nofollow'>http://www.pmwiki.org</a> . </p> </page> <?php require_once(dirname(__FILE__).'/../html2pdf.class.php'); $html2pdf = new HTML2PDF('P','A4','fr', false, 'ISO-8859-15', array(0, 0, 0, 0)); $html2pdf->pdf->SetDisplayMode('fullpage'); $html2pdf->writeHTML(ob_get_clean()); $html2pdf->Output('about.pdf');