def drawLine(page, p1, p2, color=None, dashes=None, width=<NUM_LIT:1>, roundCap=False, overlay=True, morph=None):
img = page.newShape()<EOL>p = img.drawLine(Point(p1), Point(p2))<EOL>img.finish(color=color, dashes=dashes, width=width, closePath=False,<EOL>roundCap=roundCap, morph=morph)<EOL>img.commit(overlay)<EOL>return p<EOL>
Draw a line from point p1 to point p2.