File: exemple2009.php - Tab length: 1 2 4 8 - Lines: on off - No wrap: on off

<?php
/**
 * Logiciel : exemple d'utilisation de HTML2PDF
 *
 * Convertisseur HTML => PDF, utilise fpdf de Olivier PLATHEY
 * Distribu� sous la licence GPL.
 *
 * @author      Laurent MINGUET <webmaster@spipu.net>
 */

    ob_start();
?>
    <table>
    <tr>
    <td width="90"> TEST </td>
    </tr>
    </table>
    <table style="width: 80%;border: solid 1px #5544DD" align="center">
        <tr>
            <td style="width: 30%; text-align: left; border: solid 1px #55DD44">
                1234
            </td>
            <td style="width: 70%; text-align: left; border: solid 1px #55DD44">
                1234567
            </td>
        </tr>
    </table>
<?php
    $content = ob_get_clean();
   
    require_once(dirname(__FILE__).'/../html2pdf.class.php');
    $html2pdf = new HTML2PDF('P','A4','fr');
    $html2pdf->WriteHTML($content, isset($_GET['vuehtml']));
    $html2pdf->Output('exemple2009.pdf');