Reputation: 13315
I am displaying all the users in the form using PHP where the data are fetched from db.
When I click on the icon, all users' data should be shown in a PDF.
How should this be done?
Upvotes: 0
Views: 2208
Reputation: 13315
http://www.phpclasses.org/package/421-PHP-Free-PDF-generation-class-without-PDFlib.html#download
works cool and got the perfect output.
Upvotes: 2
Reputation: 1620
For info about pdf libraries for PHP visit this stackoverflow link: https://stackoverflow.com/questions/560583/which-is-the-best-pdf-library-for-php
You will find there (as someone else suggested) this is a useful link: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
Upvotes: -1
Reputation: 4926
the easy way is to use html2pdf class from here:
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
Upvotes: -1
Reputation: 70879
It depends how much effort you want to put in, but one way is via XSL-FO. If you're interested, have a look at Apache FOP.
Upvotes: -1