8Fermer
ace_infoLe 05/11/2011 à 05:51
Spipu (./4) :
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');



I used this it is working fine for first page.

$content = '<page style="font-family:futura; font-size:16px;">...</page><page style="font-family:futura; font-size:16px;">...</page>';


When I do this it will give me an error massage like this

TCPDF ERROR: Could not include font definition file: futura.

Note: there was not problem in font or path of font. I used every thing.

becase if I use
$content = '<page style="font-family:futura; font-size:16px;">...</page><page>...</page>';
than it is working fine but when use style in second page it gives above error.

Can any one please guide me about this matter?

Thanks