Page 1 of 1
Returning table as pdf on screen?
Posted: Fri Feb 29, 2008 7:33 am
by PhpDog
I have an intranet page which gets data from a database with odbc. The resultant data is loaded into a a dynamically created html table whos lines (borders) are visible and rule off the table as a 'form' nicely.
How can I get this table, with lines (borders) to display on screen as a pdf without writing anything to disk please?
Re: Returning table as pdf on screen?
Posted: Fri Feb 29, 2008 11:53 am
by hawkenterprises
Somewhere in this result
http://www.google.com/search?q=pdf+writer+php
There is a class called PDFwriter, it might be on phpClasses, I forget. But basically you just use this class which has all the postscript hex codes built in so you give it a str it returns a str in pdf format.
Re: Returning table as pdf on screen?
Posted: Fri Feb 29, 2008 12:50 pm
by PhpDog
Thanks for that. Much appreciated.
Do phpclasses.org always take a long time of their site registration process?
I want to try the html2pdf class (
http://safe.phpclasses.net/browse/package/3168.html) ASAP, but I find myself still waiting for them to come back. Meanwhile my project sits and waits .... grr ....
