Returning table as pdf on screen?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

Returning table as pdf on screen?

Post 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?
User avatar
hawkenterprises
Forum Commoner
Posts: 54
Joined: Thu Feb 28, 2008 9:56 pm
Location: gresham,oregon
Contact:

Re: Returning table as pdf on screen?

Post 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.
PhpDog
Forum Commoner
Posts: 58
Joined: Mon Jan 14, 2008 10:23 am

Re: Returning table as pdf on screen?

Post 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 .... :banghead:
Post Reply