PHP Manual: cpdf_rect
cpdf_rect
Description
bool cpdf_rect ( int pdf_document, float x_coor, float y_coor, float width, float height [, int mode] )Draws a rectangle.
Parameters
pdf_documentThe document handle, returned by cpdf_open().
x_coorThe x-coordinate of the lower left corner
y_coorThe y-coordinate of the lower left corner
widthThe rectangle width
heightThe rectangle height
modeThe optional parameter
modedetermines the unit length. If it is 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.
Examples