(PHP 3>= 3.0.8, PHP 4 >= 4.0b4)

cpdf_rect -- Draw a rectangle


void cpdf_rect (int pdf document, double x-coor, double y-coor, double width, double height [, int mode])

The cpdf_rect() function draws a rectangle with its lower left corner at point (x-coor, y-coor). This width is set to widgth. This height is set to height.

The optional parameter mode determines the unit length. If it's 0 or omitted the default unit as specified for the page is used. Otherwise the coordinates are measured in postscript points disregarding the current unit.