Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 php 在表单中显示所有用户,其中数据是从 db 中获取的。
当我单击该图标时,所有用户数据都应以具有良好表格结构的 pdf 格式显示。
我特此使用 fpdf 生成它。我创建了 pdf,但记录不是格式化结构。
这应该怎么做。
友善的建议。
提前感谢强大的文字
请尝试使用 fpdf 输入您用于创建 PDF 的完整代码。
我还建议您尝试使用DOMPDF库,因为我自己多次使用过它并且在表结构方面没有这样的问题。
可能 PDF 代码的 HTML 部分不正确,所以请将代码放在您的问题中。
这只能通过使用 dompdf 来完成。链接在这里。
http://www.digitaljunkies.ca/dompdf/examples.php#demo
我得到了我需要的确切输出。
谢谢大家