PHP Manual: cpdf_lineto
cpdf_lineto
Description
bool cpdf_lineto ( int pdf_document, float x_coor, float y_coor [, int mode] )The cpdf_lineto() function draws a line from the current point to the specified point.
Parameters
pdf_documentThe document handle, returned by cpdf_open().
x_coorThe x-coordinate of the destination point
y_coorThe y-coordinate of the destination point
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.