Your IP : 216.73.216.65


Current Path : /home/ataenra/www/ATA/INTRANET/Outils/fpdf/doc/
Upload File :
Current File : /home/ataenra/www/ATA/INTRANET/Outils/fpdf/doc/aliasnbpages.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>AliasNbPages</title>
<link type="text/css" rel="stylesheet" href="../fpdf.css">
</head>
<body>
<h1>AliasNbPages</h1>
<code>AliasNbPages([<b>string</b> alias])</code>
<h2>Description</h2>
D�finit un alias pour le nombre total de pages. Cet alias sera substitu� lors de la fermeture
du document.
<h2>Param�tres</h2>
<dl class="param">
<dt><code>alias</code></dt>
<dd>
L'alias. Valeur par d�faut : <code>{nb}</code>.
</dd>
</dl>
<h2>Exemple</h2>
<div class="doc-source">
<pre><code>class PDF extends FPDF
{
    function Footer()
    {
        // Positionnement � 1,5 cm du bas
        $this-&gt;SetY(-15);
        // Police Arial italique 8
        $this-&gt;SetFont('Arial', 'I', 8);
        // Num�ro et nombre de pages
        $this-&gt;Cell(0, 10, 'Page '.$this-&gt;PageNo().'/{nb}', 0, 0, 'C');
    }
}

$pdf = new PDF();
$pdf-&gt;AliasNbPages();</code></pre>
</div>
<h2>Voir</h2>
<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>
</body>
</html>