0
我正在使用TCPDF生成PDF文档。我遇到的问题是我试图在每页上添加一个不同的页脚。显然,TCPDF仅为单个页脚提供了解决方案。TCPDF多页脚
每个页脚只包含基本的html代码,没有任何样式。
任何想法?
我正在使用TCPDF生成PDF文档。我遇到的问题是我试图在每页上添加一个不同的页脚。显然,TCPDF仅为单个页脚提供了解决方案。TCPDF多页脚
每个页脚只包含基本的html代码,没有任何样式。
任何想法?
您可以打开默认页脚像这样:
$pdf->SetPrintFooter(false);
创建自己的一个是这样的:
$footer = 'yau man footer stuff';
,然后创建自己的页脚功能:
public function _footer($input) {
$text = $input;
$pdf->setY(-15); // or whatever location your footer should be displayed.
$pdf->Cell (// or another method like Write(), WriteHTML() ..
$width = 0, // width of the cell, not the input
$height = 0, // height of the cell..
$x,
$y,
$text = '', // your input.
$border = 0,
$ln = 0,
$fill = false,
$reseth = true,
$align = '',
$autopadding = true
);
}
通过调用$ pdf - > _ footer($ footer);你创建自己的页脚
输出是一个空白页面 – Jarla 2017-03-02 10:52:21
你试过了什么?提供一些代码...来吧...你不是新来的,所以你现在应该知道更多... – 2014-10-30 16:24:24