3Fermer5
SpipuLe 18/04/2011 à 16:59
why do you call setDefaultFont on $html2pdf->pdf ? it is on $html2pdf...

and you don't need it. look at the utf8 example !


    $content = '<page style="font-family: freeserif">...</page>';

    $html2pdf = new HTML2PDF();
    $html2pdf->writeHTML($content);
    $html2pdf->Output('utf8.pdf');