You are here: Re: PDF in PHP « PHP Programming Language « IT news, forums, messages
Re: PDF in PHP

Posted by Juliette on 08/23/06 07:09

weetat.yeo@gmail.com wrote:
> Hi all ,
>
> I have trying to convert a PHP file to PDF.
> Search the net , found HTML_toPDF open source tools , which convert
> html file to PDF.
> Tried to product , it work seamless without any error.
>
> Howeve , for my case , when user click the search button to 'search
> items' , the data are display in the listall.php. On listall.php ,
> there are 'print' button which print the listall.php.
>
> Because the HTML_toPDF only convert html to PDF, i need to find a way
> how to convert the listall.php to listall.html dynamically before i
> called the HTML_toPDF functions.
>
> Anyone have ideas how to do it or suggestions is much appreciated .
>
> Thanks
> - weetat
>


Have a look at the output buffering functions like ob_start,
ob_get_contents etc

Run the page like you normally would, but add the ob_start at the
beginning and instead of printing to the screen you capture all you
output at the end.
Save to a temporary html file & presto !

 

Navigation:

[Reply to this 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

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