Name

band_place -- Manually place a band on a page

Synopsis

int band_place ( int band, array data, int page, float left, float bottom )

Description

This function paints the band specified by band. to the page specified by page at the location specified by left and bottom.

When the band is placed, values in the data array are substituted for any fields with matching names.

Examples

The following example places a band near the center of a letter-sized page

$page = $pdf->new_page("letter");
$band = $pdf->band_new();
$pdf->band_height($band, 15);
$pdf->band_add_field($band, 3, 3, "num", 9);
$pdf->band_add_label($band, 10, 3, "/0 = 0", 9);
$v['num'] = 5;
$pdf->band_place($band, $v, $page, 300, 400);

See Also

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

History

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

Bugs