EIOS/inc/fpdf/doc/aliasnbpages.htm

47 lines
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<title>AliasNbPages</title>
<link type="text/css" rel="stylesheet" href="fpdf.css">
</head>
<body>
<h1>AliasNbPages</h1>
<code>AliasNbPages([<b>string</b> alias])</code>
<h4 class='st'>Âåðñèÿ</h4>
1.4
<h4 class='st'>Îïèñàíèå</h4>
Çàäàåò ïñåâäîíèì îáùåãî ÷èñëà ñòðàíèö. Îíî áóäåò çàìåíÿòüñÿ êîãäà äîêóìåíò çàêðûò.
<h4 class='st'>Ïàðàìåòðû</h4>
<dl class="param">
<dt><code>alias</code></dt>
<dd>
Ïñåâäîíèì. Çíà÷åíèå ïî óìîë÷àíèþ: <TT>{nb}</TT>.
</dd>
</dl>
<h4 CLASS='st'>Ïðèìåð</h4>
<div class="doc-source">
<pre><code>class PDF extends FPDF
{
function Footer()
{
//Îòñòóïàåì 1,5 ñì ñíèçó
$this-&gt;SetY(-15);
//Âûáèðàåì Arial êóðñèâ ðàçìåðîì 8
$this-&gt;SetFont('Arial','I',8);
//Âûâîäèì òåêóùèé íîìåð è îáùåå êîëè÷åñòâî ñòðàíèö
$this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');
}
}
$pdf=new PDF();
$pdf-&gt;AliasNbPages();</code></pre>
</div>
<h4 class='st'>Ñì. òàêæå</h4>
<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">Îãëàâëåíèå</a></div>
</body>
</html>