draw_rectangle -- Paint a rectangle to a page
int draw_rectangle ( float top, float left, float bottom, float right, int page [,array parameters] )
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.
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);
None known