| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Write</title>
- <link type="text/css" rel="stylesheet" href="../fpdf.css">
- </head>
- <body>
- <h1>Write</h1>
- <code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>
- <h2>Descripción</h2>
- 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)
- 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.
- <br>
- Es posible poner una referencia sobre el texto.
- <h2>Parámetros</h2>
- <dl class="param">
- <dt><code>h</code></dt>
- <dd>
- Alto de línea.
- </dd>
- <dt><code>txt</code></dt>
- <dd>
- Cadena a ser impresa.
- </dd>
- <dt><code>link</code></dt>
- <dd>
- URL o identificador regresado por AddLink().
- </dd>
- </dl>
- <h2>Ejemplo</h2>
- <div class="doc-source">
- <pre><code>// Comienza con fuente regular
- $pdf->SetFont('Arial','',14);
- $pdf->Write(5,'Visit ');
- // Then put a blue underlined link
- $pdf->SetTextColor(0,0,255);
- $pdf->SetFont('','U');
- $pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
- </div>
- <h2>Vea además</h2>
- <a href="setfont.htm">SetFont</a>,
- <a href="settextcolor.htm">SetTextColor</a>,
- <a href="addlink.htm">AddLink</a>,
- <a href="multicell.htm">MultiCell</a>,
- <a href="setautopagebreak.htm">SetAutoPageBreak</a>
- <hr style="margin-top:1.5em">
- <div style="text-align:center"><a href="index.htm">Inicio</a></div>
- </body>
- </html>
|