11Fermer13
SpipuLe 23/07/2009 à 10:28
chez moi, ceci marche :

<?php
 	$content='
<page orientation="paysage" backcolor="#FEFEFE" backtop="0" backbottom="30mm" footer="date;heure;page" style="font-size: 12pt">
	<table style="width: 100%">
		<tr>
			<th style="background-color: #3366CC; border: 1px solid black; width:50%;align:left"><span class="Style4">YOP FIA n&deg; 1 - Spipu</span></th>
			<th style="background-color: #3366CC; border: 1px solid black; width:50%;align:left"><span class="Style4">20090101 - 10</span></th>
		</tr>
	</table>
</page>'; 
 	
 	// conversion HTML => PDF
	require_once(dirname(__FILE__).'/html2pdf.class.php');
	$html2pdf = new HTML2PDF_PLUS('P','A4','fr');
	$html2pdf->pdf->SetDisplayMode('fullpage');
	$html2pdf->WriteHTML($content, isset($_GET['vuehtml']));
	$html2pdf->Output('exemple00.pdf');