54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
|
|
<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>
|
|
<h4 class='st'>Âåðñèÿ</h4>
|
|
1.5
|
|
<h4 class='st'>Îïèñàíèå</h4>
|
|
Ýòîò ìåòîä âûâîäèò òåêñò îò òåêóùåé ïîçèöèè. Ïðè äîñòèæåíèè ïðàâîé ãðàíèöû
|
|
(èëè âñòðå÷å ñèìâîëà \n) ñòðîêà îáðûâàåòñÿ è òåêñò ïðîäîëæàåò âûâîäèòüñÿ ñ ëåâîãî êðàÿ.
|
|
Ïîñëå âûïîëíåíèÿ òåêóùàÿ ïîçèöèÿ îñòàåòñÿ â êîíöå òåêñòà.
|
|
<BR>
|
|
Âîçìîæíî âûâåäåíèå ññûëêè â òåêñòå.
|
|
<h4 class='st'>Ïàðàìåòðû</h4>
|
|
<dl class="param">
|
|
<dt><code>h</code></dt>
|
|
<dd>
|
|
âûñîòà ñòðîêè.
|
|
</dd>
|
|
<dt><code>txt</code></dt>
|
|
<dd>
|
|
Ñòðîêà äëÿ âûâîäà.
|
|
</dd>
|
|
<dt><code>link</code></dt>
|
|
<dd>
|
|
URL èëè èäåíòèôèêàòîð, âîçâðàùàåìûé AddLink().
|
|
</dd>
|
|
</dl>
|
|
<h4 CLASS='st'>Ïðèìåð</h4>
|
|
<div class="doc-source">
|
|
<pre><code>//íà÷èíàåì ñ óñòàíîâêè øðèôòà
|
|
$pdf->SetFont('Arial','',14);
|
|
$pdf->Write(5,'Visit ');
|
|
//òåïåðü äîáàâëÿåì ñèíåå ïîä÷åðêèâàíèå äëÿ ññûëêè
|
|
$pdf->SetTextColor(0,0,255);
|
|
$pdf->SetFont('','U');
|
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
|
|
</div>
|
|
<h4 class='st'>Ñì. òàêæå</h4>
|
|
<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">Îãëàâëåíèå</a></div>
|
|
</body>
|
|
</html>
|