-
-
Notifications
You must be signed in to change notification settings - Fork 2
Fpdf::write
Fery Wardiyanto edited this page Feb 10, 2015
·
1 revision
Write(<b>float</b> h, <b>string</b> txt [, <b>mixed</b> link])
This method prints text from the current position. When the right margin is reached (or the \n character is met) a line break occurs and text continues from the left margin. Upon method exit, the current position is left just at the end of the text.
It is possible to put a link on the text.
- `h`
- Line height.
- `txt`
- String to print.
- `link`
- URL or identifier returned by 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().