将页脚/页眉插入pdf-PHP类mPDF


Insert Footer/Header to pdf - PHP class mPDF

如何在所有边上插入页脚?

$mpdf->SetHTMLFooter($paticka);->插入最后一面

提前谢谢。

您需要指定页面margin_bottom,以便为页脚留出足够的空间。margin_bottom是距页面底部的距离(mm),用于强制创建新页面的文本。margin_footer是距页脚底部对齐的页面底部的距离,单位为毫米。

$mpdf = new mPDF('', 'A4', '', '', $margin_left, $margin_right, $margin_top, $margin_bottom, $margin_header, $margin_footer);

http://mpdf.bpm1.com/forum/comments.php?DiscussionID=228

编辑:上面的链接似乎是旧的。我相信这是新的链接:http://www.mpdf1.com/forum/discussion/228