1. Adam Dutko
  2. Portfolio


Portfolio / oncall / www / php / fpdf / doc / write.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link type="text/css" rel="stylesheet" href="../fpdf.css">
<code>Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])</code>
This method prints text from the current position. When the right margin is reached (or the \n
character is met) a line break occurs and text continues from the left margin. Upon method exit,
the current position is left just at the end of the text.
It is possible to put a link on the text.
<dl class="param">
Line height.
String to print.
URL or identifier returned by AddLink().
<div class="doc-source">
<pre><code>// Begin with regular font
$pdf-&gt;Write(5,'Visit ');
// Then put a blue underlined link
<h2>See also</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">Index</a></div>