Posted by aggelos on 06/16/05 14:50
aggelos wrote:
> i have this problem :convert html pages to pdf
> is there any code available?
> i want it to have support for images
>
> i tried to use HTML2FPDF , FPDF but it did not work successfully!
>
>
here is my code for HTML2FPDF
$pdf=new HTML2FPDF();
$pdf->AddPage();
$pdf->SetAuthor('me');
$pdf->SetTitle('me');
$pdf->ReadCSS($contents);
$pdf->setCSS(SERVER_PATH.'style.css');
$pdf->SetFont('helvetica');
$pdf->ShowNOIMG_GIF(true);
//$pdf->shownoimg=true;
$pdf->setBasePath(SERVER_PATH);
$pdf->Image(SERVER_PATH .'text_img.gif');
//$pdf->ShowNOIMG_GIF=false;
$pdf->WriteHTML($contents);
$pdf->Output($pdfFile,'F');
header('Location: test.pdf');
break;
any ideas for writing in iso8859-7 -greek?
--
Love Peace and Linux
[Back to original message]
|