source: trunk/phpgwapi/inc/fpdf/doc/write.htm @ 2

Revision 2, 1.5 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
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>
111.5
12<H4 CLASS='st'>Description</H4>
13This method prints text from the current position. When the right margin is reached (or the \n
14character is met) a line break occurs and text continues from the left margin. Upon method exit,
15the current position is left just at the end of the text.
16<BR>
17It is possible to put a link on the text.
18<H4 CLASS='st'>Parameters</H4>
19<TT><U>h</U></TT>
20<BLOCKQUOTE>
21Line height.
22</BLOCKQUOTE>
23<TT><U>txt</U></TT>
24<BLOCKQUOTE>
25String to print.
26</BLOCKQUOTE>
27<TT><U>link</U></TT>
28<BLOCKQUOTE>
29URL 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-&gt;SetFont('Arial','',14);<BR>
36$pdf-&gt;Write(5,'Visit ');<BR>
37//Then put a blue underlined link<BR>
38$pdf-&gt;SetTextColor(0,0,255);<BR>
39$pdf-&gt;SetFont('','U');<BR>
40$pdf-&gt;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>
Note: See TracBrowser for help on using the repository browser.