Name

band_add_box -- Add a rectangle to a band definition

Synopsis

int band_new ( int band, float bottom, float left, float top, float right[, array parameters])

Description

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.

Examples

$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);
}

See Also

band_height(), band_add_field(), band_add_label(), band_place(), band_line(), band_new()

History

This function was removed from the library in version 2. Use the new template functions instead.

Bugs