the moose
08-25-2009, 09:28 AM
I am creating a PDF file from HTML, but it is not retaining the formatting of things like the font etc.
Any ideas why:
$pdf=new PDF();
$pdf->SetMargins($left_margin, $top_margin);
$pdf->pgwidth = 210-($left_margin+$right_margin);
$pdf->SetAutoPageBreak (true, $bottom_margin);
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output(getcwd()."/".$name);
This is the only problem I am having. Everything else is working well.
Thanks for your help guys.
Cheers
The Moose
Any ideas why:
$pdf=new PDF();
$pdf->SetMargins($left_margin, $top_margin);
$pdf->pgwidth = 210-($left_margin+$right_margin);
$pdf->SetAutoPageBreak (true, $bottom_margin);
$pdf->AddPage();
$pdf->WriteHTML($buffer);
$pdf->Output(getcwd()."/".$name);
This is the only problem I am having. Everything else is working well.
Thanks for your help guys.
Cheers
The Moose