band_new -- Begin the definition of a band
int band_new ( )
This function creates a new band that can be defined by band_height(), band_add_box(), band_add_field(), and band_add_label(); and painted to the page with band_place(), and band_line().
The function returns an ID for the band.
$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_add_box(), band_add_field(), band_add_label(), band_place(), band_line(), band_height()
This function was removed from the library in version 2. Use the new template functions instead.