EIOS/inc/fpdf/doc/footer.htm

39 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>Footer</title>
<link type="text/css" rel="stylesheet" href="fpdf.css">
</head>
<body>
<h1>Footer</h1>
<code>Footer()</code>
<h4 class='st'>Âåðñèÿ</h4>
1.0
<h4 class='st'>Îïèñàíèå</h4>
Ýòîò ìåòîä èñïîëüçóåòñÿ äëÿ âèçóàëèçàöèè íèæíåãî êîëîíòèòóëà ñòðàíèöû. Îí àâòîìàòè÷åñêè
âûçûâàåòñÿ ìåòîäîì AddPage() è Close() è åãî íå îáÿçàòåëüíî âûçûâàòü íåïîñðåäñòâåííî
èç ïðèëîæåíèÿ. Ðåàëèçàöèÿ ýòîãî ìåòîäà â FPDF íå îïðåäåëåíà, òàê ÷òî òðåáóåòñÿ ñïåöèàëüíàÿ
îáðàáîòêà, òî íóæíî ñîçäàòü ïîäêëàññ è ïåðåïèñàòü äàííûé ìåòîä.
<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(),0,0,'C');
}
}</code></pre>
</div>
<h4 class='st'>Ñì. òàêæå</h4>
<a href="header.htm">Header()</a>.
<hr style="margin-top:1.5em">
<div style="text-align:center"><a href="index.htm">Îãëàâëåíèå</a></div>
</body>
</html>