如何使用WAMP将php表单数据转换为表结构中的pdf
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请尝试使用 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.
这只能通过使用 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