1

Hello,

I try to made example, but i got error message : TCPDF ERROR: Could not include font definition file: "times new roman"

I have try out this :

<?php
$content = "
<page>
<h1>Exemple d'utilisation</h1>
<br>
Ceci est un <b>exemple d'utilisation</b>
de <a href='http://html2pdf.fr/'>HTML2PDF</a>.<br>
</page>";
$filename = 'probe2.html';
$size = filesize($filename) ;
$handle = fopen($filename, "a+");
$html = fread($handle,$size) ;

require_once('html2pdf/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','de');
$html2pdf->WriteHTML($html);
$html2pdf->Output('exemple.pdf');
?>

Seems that i must configure something ???

2

it is because you use a font thaht is not in tcpdf. you have to build it before using it.
[nosmile]
http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:font
Ancien pseudo : lolo