[thelist] how to convert an existing php output in pdf format?help needed..

Brian Cummiskey brian at hondaswap.com
Wed Sep 26 22:46:16 CDT 2007


>>I have gone through some tutoarials...i still dont understand on how to convert this output in to pdf format?If any of you have gone through this problem,and if you had the solution,could pls guide me?<<

Thivya,

php.net has a good example:
http://us2.php.net/manual/en/ref.pdf.php

note, that this requires a library.


basically, you'll need to change

|$p->show("Hello world!");
$p->continue_text("(says PHP)");

from the example to something like

||$p->show($yourtitle);
$p->continue_text($youroutput);


so do your output like you have, then use that code from the link, and 
change those vars to match your data, and you should get a basic pdf 
file for download.
|



More information about the thelist mailing list