Name

draw_rectangle -- Paint a rectangle to a page

Synopsis

int draw_rectangle ( float top, float left, float bottom, float right, int page [,array parameters] )

Description

This function paints a rectangle to the page specified by page.

The parameters array provides control over the painting operation. See the parameters documentation for details.

Examples

Paints a rectangle with default parameters:

$pdf->draw_rectangle(100, 50, 50, 100, $page);

Place a red, thick-lined rectangle:

$param["width"] = 3; // PDF units
$param["strokecolor"] = $pdf->get_color('red');
$pdf->draw_rectangle(100, 50, 50, 100, $page, $param);

See Also

History

Bugs

None known