Write

Write(float h, string txt [, mixed link])

版本

1.5

內容

這個功能用來顯示文字到目前的位置。當抵達右邊邊緣(或並到 \n),那時便會換行並且在左邊繼續顯示文字。當這個功能退出,目前的位置改變成文字的未端。 它可以加入連結在文字裡。

參數

h
行列高度
txt
顯示字串
link
連結到網頁或AddLink()的識別符

例子

//Begin with regular font
$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');

參見

SetFont(), SetTextColor(), AddLink(), MultiCell(), SetAutoPageBreak().

索引