Footer
Footer()
版本
1.0
內容
这个功能是用来产生页尾。AddPage() 和 Close() 会自动呼叫这个功能,但程序不会直接呼叫这个功能。这个结果在 FPDF 里是空白的,若果你想进行特殊处理,你要透过(subclass)去撤销这个功能。
例子
class PDF extends FPDF
{
function Footer()
{
//Go to 1.5 cm from bottom
$this->SetY(-15);
//Select Arial italic 8
$this->SetFont('Arial','I',8);
//Print centered page number
$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
}
}
參見
Header()
.
索引