Reply to Re: convert html pages to pdf

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация