| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| <title>AliasNbPages</title>
|
| <link type="text/css" rel="stylesheet" href="../fpdf.css">
|
| <code>AliasNbPages([<b>string</b> alias])</code>
|
| Defines an alias for the total number of pages. It will be substituted as the document is
|
| <dt><code>alias</code></dt>
|
| The alias. Default value: <code>{nb}</code>.
|
| <pre><code>class PDF extends FPDF
|
| // Go to 1.5 cm from bottom
|
| $this->SetFont('Arial', 'I', 8);
|
| // Print current and total page numbers
|
| $this->Cell(0, 10, 'Page '.$this->PageNo().'/{nb}', 0, 0, 'C');
|
| $pdf->AliasNbPages();</code></pre>
|
| <a href="pageno.htm">PageNo</a>,
|
| <a href="footer.htm">Footer</a>
|
| <hr style="margin-top:1.5em">
|
| <div style="text-align:center"><a href="index.htm">Index</a></div>
|