06 The class Pen
Pen objects describes line styles. The LineFrame (as seen in the last section) but also the BoxFrame use pens. A pen contains a color, an extent (thickness of the line) and a line style (e.g., solid, dashed et cetera). You can create a new pen as follows.
$pen = new ReportLib\Pen(0.2, "#0000FF", 'dot');
You can pass all the attributes or none of them. In this case you will get a default pen which has an extent of 0.1mm and it is a solid black line. TCPDF supports self-definable line styles, but ReportLib accepts only the following values for the line style parameter:
- ‘solid’
- ‘dash’
- ‘dot’
- ‘dashdot’