footer.htm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>Footer</title>
  6. <link type="text/css" rel="stylesheet" href="../fpdf.css">
  7. </head>
  8. <body>
  9. <h1>Footer</h1>
  10. <code>Footer()</code>
  11. <h2>Descripción</h2>
  12. Este método es usado para generar el pie de página. Es automáticamente invocado por AddPage() y Close() y no sebería ser
  13. invocado directamente por la aplicación. La implementación en FPDF es vacia, así que si desea un procesamiento específico
  14. debe hacer subclase y sobreescribir el método.
  15. <h2>Ejemplo</h2>
  16. <div class="doc-source">
  17. <pre><code>class PDF extends FPDF
  18. {
  19. function Footer()
  20. {
  21. // Go to 1.5 cm from bottom
  22. $this-&gt;SetY(-15);
  23. // Select Arial italic 8
  24. $this-&gt;SetFont('Arial','I',8);
  25. // Print centered page number
  26. $this-&gt;Cell(0,10,'Page '.$this-&gt;PageNo(),0,0,'C');
  27. }
  28. }</code></pre>
  29. </div>
  30. <h2>Vea además</h2>
  31. <a href="header.htm">Header</a>
  32. <hr style="margin-top:1.5em">
  33. <div style="text-align:center"><a href="index.htm">Inicio</a></div>
  34. </body>
  35. </html>