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 outputting.
public cell ( float $width, float $height, string $text = '', mixed $border, integer $ln, string $align = '', integer $fill, string $link = '' ) | ||
$width | float | Cell width. If 0, the cell extends up to the right margin. |
$height | float | Cell height. |
$text | string | String to print. |
$border | mixed | Indicates if borders must be drawn around the cell. The value can be either a number: - 0: no border (default) - 1: frame or a string containing some or all of the following characters (in any order): - L: left - T: top - R: right - B: bottom |
$ln | integer | Indicates where the current position should go after the call. Possible values are: - 0: to the right (default) - 1: to the beginning of the next line - 2: below Putting 1 is equivalent to putting 0 and calling {@link newLine()} just after. |
$align | string | Allows to center or align the text. Possible values are: - L or empty string: left (default) - C: center - R: right |
$fill | integer | Indicates if the cell fill type. Possible values are: - 0: transparent (default) - 1: painted |
$link | string | URL or identifier returned by {@link addLink()}. |