Fermer2
hornetbzzLe 23/04/2010 à 23:38
Franchement, j'ai probablement du mal à comprendre mais finalement quel est l'intérêt de cette classe par rapport à TCPDF ..?

Une simple table ultra basique ne passe même pas en l'état :
$content = '
<page backcolor="#FEFEFE" backtop="0" backbottom="30mm" footer="date;heure;page" style="font-size: 12pt">

<table>
<thead>
<tr>
<th>BLOC</th>
<th>GROUPE 1</th>
<th>GROUPE 2</th>
<th>GROUPE 3</th>
<th>GROUPE 4</th>
</tr>
</thead>

<tfoot>
<tr>
<th>BLOC</th>
<th>GROUPE 1</th>
<th>GROUPE 2</th>
<th>GROUPE 3</th>
<th>GROUPE 4</th>
</tr>
</tfoot>

<tbody>
<td>TEST</td><td>TEST</td><td>TEST</td><td>TEST</td><td>TEST</td><br/>
<td>TEST</td><td>TEST</td><td>TEST</td><td>TEST</td><td>TEST</td><br/>
</tbody>

</table>
</page>';



$html2pdf = new HTML2PDF($sens = 'P', $format = 'A4', $langue='fr', $unicode=false, $encoding='iso-8859-1', $marges = array(5, 5, 5, 8)) ;
$html2pdf->WriteHTML($content); $html2pdf->Output('sitemap.pdf');


Et bien sûr, aucune doc... Bref j'ai l'impression que je vais plus perdre mon temps à analyser les classes qu'à faire fonctionner TCPDF, bien documenté.

Dommage, car l'effort est énorme et ça a l'air d'être super bien codé en première lecture, mais sans doc, ça sent le plan galère.