Horde_Pdf_Writer::aliasNbPages PHP Method

aliasNbPages() public method

It will be substituted as the document is closed. Example: 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();
See also: getPageNo()
See also: footer()
public aliasNbPages ( string $alias = '{nb}' )
$alias string The alias.
    public function aliasNbPages($alias = '{nb}')
    {
        $this->_alias_nb_pages = $alias;
    }