如何将php表单数据转为pdf
我使用 php 在表单中显示所有用户,其中数据是从数据库获取的。
当我单击该图标时,所有用户数据都应以 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.
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
http://www.phpclasses.org/package/421-PHP-Free-PDF- Generation-class-without-PDFlib.html#download" phpclasses.org/package/421-PHP-Free-PDF- Generation-class-without-PDFlib.html#download
工作很酷并且得到了完美的输出。
http://www.phpclasses.org/package/421-PHP-Free-PDF-generation-class-without-PDFlib.html#download
works cool and got the perfect output.
看看fpdf。
take a look at fpdf.
这取决于您想要投入多少精力,但一种方法是通过 XSL-FO。如果您有兴趣,请查看 Apache FOP。
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.
最简单的方法是从这里使用 html2pdf 类:
http://www .tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
the easy way is to use html2pdf class from here:
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
有关 PHP pdf 库的信息,请访问此 stackoverflow 链接:
https://stackoverflow.com/questions/560583/which-is- the-best-pdf-library-for-php
您会发现(正如其他人建议的那样)这是一个有用的链接:
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