Cell

Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]])

Description

Prints a cell (rectangular area) with optional borders, background color and character string. The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text.

If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before output.

Parameters

Example

// Set font
$pdf->SetFont('Arial', 'B', 16);
// Move to the right
$pdf->Cell(80);
// Centered text in a framed 20*10 mm cell and line break
$pdf->Cell(20, 10, 'Title', 1, 1, 'C');

See also

SetFont, SetDrawColor, SetFillColor, SetTextColor, SetLineWidth, AddLink, Ln, MultiCell, Write, SetAutoPageBreak