标签: php pdf mpdf
如何在使用mpdf生成的PDF文档中设置页眉和页脚?
$mpdf = new \Mpdf\Mpdf(); $mpdf->SetHTMLHeader('<div>Page: {PAGENO}</div>'); $mpdf->WriteHTML('<div>test</div>'); $mpdf->Output('test.pdf');
这会将test写入文档但没有标题?
test
如何将总页码添加到标题Page 1 of 3
Page 1 of 3