-
-
Notifications
You must be signed in to change notification settings - Fork 2
Fpdf::aliasnbpages
Fery Wardiyanto edited this page Feb 10, 2015
·
1 revision
AliasNbPages([<b>string</b> alias])
Defines an alias for the total number of pages. It will be substituted as the document is closed.
- `alias`
- The alias. Default value: `{nb}`.
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 current and total page numbers
$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
}
}
$pdf = new PDF();
$pdf->AliasNbPages();