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().

索引