write.htm 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>Write</title>
  6. <link type="text/css" rel="stylesheet" href="../fpdf.css">
  7. </head>
  8. <body>
  9. <h1>Write</h1>
  10. <code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>
  11. <h2>Descripción</h2>
  12. Este método imprime el texto desde la posición actual. Cuando el márgen derecho es alcanzado (o el carácter \n es alcanzado)
  13. se produce un salto de línea y el texto continua desde el márgen izquierdo. Una ves el método termine, la posición actual es dejada justo al final del texto.
  14. <br>
  15. Es posible poner una referencia sobre el texto.
  16. <h2>Parámetros</h2>
  17. <dl class="param">
  18. <dt><code>h</code></dt>
  19. <dd>
  20. Alto de línea.
  21. </dd>
  22. <dt><code>txt</code></dt>
  23. <dd>
  24. Cadena a ser impresa.
  25. </dd>
  26. <dt><code>link</code></dt>
  27. <dd>
  28. URL o identificador regresado por AddLink().
  29. </dd>
  30. </dl>
  31. <h2>Ejemplo</h2>
  32. <div class="doc-source">
  33. <pre><code>// Comienza con fuente regular
  34. $pdf-&gt;SetFont('Arial','',14);
  35. $pdf-&gt;Write(5,'Visit ');
  36. // Then put a blue underlined link
  37. $pdf-&gt;SetTextColor(0,0,255);
  38. $pdf-&gt;SetFont('','U');
  39. $pdf-&gt;Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
  40. </div>
  41. <h2>Vea además</h2>
  42. <a href="setfont.htm">SetFont</a>,
  43. <a href="settextcolor.htm">SetTextColor</a>,
  44. <a href="addlink.htm">AddLink</a>,
  45. <a href="multicell.htm">MultiCell</a>,
  46. <a href="setautopagebreak.htm">SetAutoPageBreak</a>
  47. <hr style="margin-top:1.5em">
  48. <div style="text-align:center"><a href="index.htm">Inicio</a></div>
  49. </body>
  50. </html>