[903] | 1 | <HTML>
|
---|
| 2 | <HEAD>
|
---|
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
|
---|
| 4 | <TITLE>Write</TITLE>
|
---|
| 5 | <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
|
---|
| 6 | </HEAD>
|
---|
| 7 | <BODY>
|
---|
| 8 | <H2>Write</H2>
|
---|
| 9 | <TT>Write(<B>float</B> h, <B>string</B> txt [, <B>mixed</B> link])</TT>
|
---|
| 10 | <H4 CLASS='st'>Version</H4>
|
---|
| 11 | 1.5
|
---|
| 12 | <H4 CLASS='st'>Description</H4>
|
---|
| 13 | This method prints text from the current position. When the right margin is reached (or the \n
|
---|
| 14 | character is met) a line break occurs and text continues from the left margin. Upon method exit,
|
---|
| 15 | the current position is left just at the end of the text.
|
---|
| 16 | <BR>
|
---|
| 17 | It is possible to put a link on the text.
|
---|
| 18 | <H4 CLASS='st'>Parameters</H4>
|
---|
| 19 | <TT><U>h</U></TT>
|
---|
| 20 | <BLOCKQUOTE>
|
---|
| 21 | Line height.
|
---|
| 22 | </BLOCKQUOTE>
|
---|
| 23 | <TT><U>txt</U></TT>
|
---|
| 24 | <BLOCKQUOTE>
|
---|
| 25 | String to print.
|
---|
| 26 | </BLOCKQUOTE>
|
---|
| 27 | <TT><U>link</U></TT>
|
---|
| 28 | <BLOCKQUOTE>
|
---|
| 29 | URL or identifier returned by AddLink().
|
---|
| 30 | </BLOCKQUOTE>
|
---|
| 31 | <H4 CLASS='st'>Example</H4>
|
---|
| 32 | <TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
|
---|
| 33 | <TT>
|
---|
| 34 | //Begin with regular font<BR>
|
---|
| 35 | $pdf->SetFont('Arial','',14);<BR>
|
---|
| 36 | $pdf->Write(5,'Visit ');<BR>
|
---|
| 37 | //Then put a blue underlined link<BR>
|
---|
| 38 | $pdf->SetTextColor(0,0,255);<BR>
|
---|
| 39 | $pdf->SetFont('','U');<BR>
|
---|
| 40 | $pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
|
---|
| 41 | </TT>
|
---|
| 42 | </TD></TR></TABLE><BR>
|
---|
| 43 | <H4 CLASS='st'>See also</H4>
|
---|
| 44 | <A HREF="setfont.htm">SetFont()</A>,
|
---|
| 45 | <A HREF="settextcolor.htm">SetTextColor()</A>,
|
---|
| 46 | <A HREF="addlink.htm">AddLink()</A>,
|
---|
| 47 | <A HREF="multicell.htm">MultiCell()</A>,
|
---|
| 48 | <A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
|
---|
| 49 | <H6></H6>
|
---|
| 50 | <HR>
|
---|
| 51 | <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
|
---|
| 52 | </BODY>
|
---|
| 53 | </HTML>
|
---|