How to get php form data to pdf
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 show in a pdf.
How should this can be done.
kindly advice.
th开发者_如何学Pythonanks in advance
http://www.phpclasses.org/package/421-PHP-Free-PDF-generation-class-without-PDFlib.html#download
works cool and got the perfect output.
take a look at fpdf.
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.
the easy way is to use html2pdf class from here:
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
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
精彩评论