Tag-based MultiCell
Informations
Author: Bintintan Andrei
License: Free for non-commercial use
Description
This class provides an extension of the MultiCell method, where the text can be tag-formatted. The use of
tags allows to change the font, the style (bold, italic, underline), the size, and the color of characters.
There are 2 methods:
SetStyle(string tag, string family, string style, int size, string color [, int indent])
Sets the current settings for the specified tag name. The names "ttags" and "pparg" are reserved for tab spaces. Don't use
empty tag names.
tag: name of the tag
family: family of the font
style: N (normal) or combination of B, I, U
size: size
color: color (comma-separated RGB components)
MultiCellTag(float w, float h, string txt [, mixed border [, string align [, int fill]]])
Outputs the tag-based MultiCell. \n = new line, \t = tab space. All parameters are and
behave the same as the MultiCell function.
w: width of cells. If 0, they extend up to the right margin of the page.
h: height of cells.
txt: string to print.
border: Indicates if borders must be drawn around the cell block.
align: Sets the text alignment. Possible values are: L, C, R, J.
fill: Indicates if the cell background must be painted (1) or transparent (0).
See the class and example for more details on the methods and parameters.