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().

索引