TextBox
Informations
Author: Darren Gates & Adrian Tufa
License: FPDF
Description
The drawTextBox() function draws a string within a rectangle defined by the function
parameters. Any text that does not fit within the rectangle's boundaries is truncated.
One may specify vertical and horizontal alignment for the text within the box, and
whether or not to surround the box with a border.
drawTextBox(string strText, float w, float h [, string align [, string valign [, boolean border]]])
strText
: the string to print
w
: width of the box
h
: height of the box
align
: horizontal alignment (L
, C
, R
or J
). Default value: L
valign
: vertical alignment (T
, M
or B
). Default value: T
border
: whether to draw the border of the box. Default value: true