methods to draw line for pdf renderer