Extended Cell functions
Informations
Author: Pivkin Vladimir
License: FPDF
Description
This class provides two extended versions of the Cell method, one which prints horizontal text:
Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]])
and one for vertical:
VCell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill]]]]]])
These methods allow multiline text with the delimiter "\n".
If the cell contains a single line and its length exceeds the size of the cell, the text will be
compressed to fit.
Changes in parameters:
border
: indicates if borders must be drawn around the cell. The value can be
either a number:
0
: no border
>0
: frame of the corresponding width
or a string containing some or all of the following characters (in any order):
L
: left
T
: top
R
: right
B
: bottom
or for bold border:
l
: left
t
: top
r
: right
b
: bottom
Default value: 0
.
For VCell():
align
: allows to center or align the text. Possible values are:
U
: top
C
: center (default value)
D
: bottom