如何将php表单数据转为pdf

发布于 2024-09-05 16:59:17 字数 120 浏览 3 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

浅语花开 2024-09-12 16:59:17

看看fpdf

take a look at fpdf.

东京女 2024-09-12 16:59:17

这取决于您想要投入多少精力,但一种方法是通过 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.

沙与沫 2024-09-12 16:59:17

最简单的方法是从这里使用 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

幸福丶如此 2024-09-12 16:59:17

有关 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文