Hi,
I'm new to the html2fpdf class and would appreciate your help on this.
I've got a simple php file creating a table from a database at:http://www.smilebga.com/test.php
Then I got a simple php file using that html2fpdf class to generate a pdf.
<?
require('html2pdf/html2fpdf.php');
$pdf=new HTML2FPDF();
$pdf->AddPage();
$fp = fopen("test3.php","r");
$strContent = fread($fp, filesize("test3.php"));
fclose($fp);
$pdf->WriteHTML($strContent);
$pdf->Output("temp/sample.pdf");
echo "PDF file is generated successfully!";
?>
I'm getting a blank pdf file.......
When I'm using a simple html file as a source all goes great. So I guess there's something wrong with my php code?
Thanks