filip jansen - 2009-09-04

I'm trying to convert reports that are generated trough a local intranet site to a PDF.

I use this simple code to generate the PDF file:

<?php
require("html2fpdf.php");
$pdf=new HTML2FPDF();
$pdf->AddPage();
$fp = fopen("table.html","r");
$strContent = fread($fp, filesize("table.html"));
fclose($fp);
$pdf->WriteHTML($strContent);
$pdf->Output("table.pdf");
echo "PDF file is generated successfully!";
?>

When i run this script via the local intranet the following error are shown on screen
Notice: Undefined index: left in c:\intranet\test\tableclass\html2fpdf.php on line 804

Notice: Uninitialized string offset: 0 in c:\intranet\test\tableclass\html2fpdf.php on line 427

Notice: Uninitialized string offset: 0 in c:\intranet\test\tableclass\html2fpdf.php on line 427
This are just some lines but my whole screen is full of it.

The PDF however can be found in de directory where the above script is saved.
How can i resolve this error?
I like to open the PDF file in the browser instead of saving it directly to a directory?