2016-09-22 160 views

回答

0

我解决了我的问题,使用mPdf而不是tcpdf。使用mPdf我只是称为SetFooter()函数。

$mpdf = new mPDF(); 

$mpdf->Bookmark('Start of the document'); 

$mpdf->WriteHTML('<div>This is body text </div>'); 
$mpdf->SetFooter('<div>This is custom footer!</div>'); 

$mpdf->Output(); 

现在自定义页脚为我工作!