如何使用WAMP将php表单数据转换为表结构中的pdf

发布于 2024-09-06 00:06:20 字数 216 浏览 2 评论 0原文

我使用 php 在表单中显示所有用户,其中数据是从数据库获取的。

当我单击该图标时,所有用户数据都应以 pdf 形式显示,并具有良好的表格结构。

我特此使用 fpdf 来生成它。我创建了 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 with a good table structure.

i am hereby using fpdf to generate it. i created pdf but the records are not in formatted structure.

How should this can be done.

kindly advice.

thanks in advance
strong text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

冬天旳寂寞 2024-09-13 00:06:20

请尝试使用 fpdf 放置您用于创建 PDF 的完整代码。

我还建议您尝试使用 DOMPDF 库,因为我自己使用过几次& ;表结构没有这样的问题。

也许PDF代码的HTML部分不正确,所以请将代码放在您的问题中。

Please try to put the full code which you are using to create the PDF, using fpdf.

I would also recommend that you please try using the DOMPDF library, as I used it myself several times & had no such problem with table structuring.

Maybe the HTML part of the PDF code is not correct, so please put the code in your question.

柠檬色的秋千 2024-09-13 00:06:20

这只能通过使用 dompdf 来完成。这是链接。

http://www.digitaljunkies.ca/dompdf/examples.php#demo

我得到了我需要的确切输出。

谢谢大家

This can be done only by using dompdf. Here is the link.

http://www.digitaljunkies.ca/dompdf/examples.php#demo

and i got the exact output what i need.

thanks for all

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