1

Very simple generation:

require_once('/var/www/voucher/html2pdf.class.php');
$html2pdf=new HTML2PDF('P', 'A4', 'it',true,'UTF-8');
$html2pdf->writeHTML($content);
$html2pdf->Output('');

With $content='<p>This is your first PDF File</p>' it works.

But with $content containing the html fragment below, I get a blank page.

Can someone help me?

$content='<table width="80%">
<tr>
<td width="60%"><img src="./logo.png"></td>
<td align=><h1>Milano, 26/4/2013</h1></td>
</tr>
<tr>
<td></td>
<td><b>Spett.le TAO DUE srl<br>
Via Pompeo Magno, 1<br>
08747881004<br>
06/3222016<br>
<br></b></td>
</tr>
<tr>
<td><h1>Per Mattia Puglia</h1></td>
<td></td>
</tr>
<tr>
<td colspan=2><h2>Fornitore: O.C HOTEL ROMA (Via Tiburtina, 1352 - 00131 - Roma 06479441005 +39 06 4130161)</h2></td>
</tr>
<tr>
<td colspan=2><h1>Dati della prenotazione</h1><h2>Camera ---<br>
Tipo twin<br>
In 5/4/2013 Out 6/4/2013<br>
Early In 1/1/1970 Late Out 1/1/1970<br>
Fullcredit Si<br>
Tassa di Soggiorno &euro; 6.00</h2></td>
</tr>
</table>'