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.
谁能告诉我如何使用mpdf. 我的页面大小是 A4(mpdf默认)。
mpdf
我想动态更改报告第二页的宽度,因为它是表格的动态内容(例如列数未定义)
如果您知道第一页的结束位置,则可以使用 AddPage() 函数更改下一页的格式。
$mpdf=new mPDF(); $mpdf->WriteHTML('Your Introduction'); $mpdf->AddPage('L','','','','',50,50,50,50,10,10); $mpdf->WriteHTML('Your Book text'); $mpdf->AddPage('P','','','','',50,50,50,50,10,10);