class My_Pdf extends Horde_Pdf_Writer {
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->getPageNo() . '/{nb}', 0,
0, 'C');
}
}
$pdf = new My_Pdf();
$pdf->aliasNbPages();
public aliasNbPages ( string $alias = '{nb}' ) | ||
$alias | string | The alias. |