source: trunk/phpgwapi/inc/fpdf/doc/aliasnbpages.htm @ 2

Revision 2, 1.3 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<HTML>
2<HEAD>
3<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
4<TITLE>AliasNbPages</TITLE>
5<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
6</HEAD>
7<BODY>
8<H2>AliasNbPages</H2>
9<TT>AliasNbPages([<B>string</B> alias])</TT>
10<H4 CLASS='st'>Version</H4>
111.4
12<H4 CLASS='st'>Description</H4>
13Defines an alias for the total number of pages. It will be substituted as the document is
14closed.
15<H4 CLASS='st'>Parameters</H4>
16<TT><U>alias</U></TT>
17<BLOCKQUOTE>
18The alias. Default value: <TT>{nb}</TT>.
19</BLOCKQUOTE>
20<H4 CLASS='st'>Example</H4>
21<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
22<TT>
23class PDF extends FPDF<BR>
24{<BR>
25function Footer()<BR>
26{<BR>
27&nbsp;&nbsp;&nbsp;&nbsp;//Go to 1.5 cm from bottom<BR>
28&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetY(-15);<BR>
29&nbsp;&nbsp;&nbsp;&nbsp;//Select Arial italic 8<BR>
30&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;SetFont('Arial','I',8);<BR>
31&nbsp;&nbsp;&nbsp;&nbsp;//Print current and total page numbers<BR>
32&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');<BR>
33}<BR>
34}<BR>
35<BR>
36$pdf=new PDF();<BR>
37$pdf-&gt;AliasNbPages();
38</TT>
39</TD></TR></TABLE><BR>
40<H4 CLASS='st'>See also</H4>
41<A HREF="pageno.htm">PageNo()</A>,
42<A HREF="footer.htm">Footer()</A>.
43<H6></H6>
44<HR>
45<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
46</BODY>
47</HTML>
Note: See TracBrowser for help on using the repository browser.