问题描述
我有一个时钟系统,我需要为每个用户打印一份报告……但不知道该怎么做……我想看看 DOMPDF 是否是一个解决方案,但网站已关闭.
I have a timeclock system where i need to print a report for each user... and dont have anyh clue how to do this... im trying to see if DOMPDF its a solution but the website is off.
我的想法是创建一个 pdf 文件,每页都有一个报告......但没有阅读 DOMPDF 类就没有线索..
My ideia is create a pdf with one report in each page... but dont have a clue without read the DOMPDF class..
任何其他解决方案,也许是 js,不知道.
Any other solution, maybe js, dunno.
问候,罗伯托
推荐答案
PDFLib 在 PHP 网站上有大量文档:
PDFLib is very heavily documented on the PHP website:
http://us3.php.net/manual/en/book.pdf.php
这可能是一个值得研究的选项,当通过 PDF 创建报告时,您可以在特定位置强制换行,以便也创建这些多页报告.
This may be an option to look into, when creating a report via PDF you can force a line break at a particular spot in order to create these multiple page reports as well.
例如,如果您有 5 个用户,您可以为每个用户创建一个单页报告,在每个用户数据的末尾强制在 PDF 中中断.:)
For example if you had 5 users, you could create a single page report for each user forcing the break in a PDF at the end of each users data. :)
希望这会有所帮助,并且我正确理解了您的问题!
Hope this helps, and that i understood your question correctly!
这篇关于PHP - 每页打印一份报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!