band_add_box -- Add a rectangle to a band definition
int band_new ( int band, float bottom, float left, float top, float right[, array parameters])
This function adds a rectangle to a band
identified by the band ID band.
The dimensions of the rectangle are devined by the bottom, left, top, right values.
The optional parameters array can be used to override the default values for a rectangle object.
$band = $pdf->band_new();
$pdf->band_height($band, 15);
$pdf->band_add_box($band, 0, 0, 15, 100);
$pdf->band_add_field($band, 3, 3, "num", 9);
for ($i = 0; $i < 10; $i++) {
$v['num'] = $i;
$pdf->band_line($band, $v);
}
band_height(), band_add_field(), band_add_label(), band_place(), band_line(), band_new()
This function was removed from the library in version 2. Use the new template functions instead.