Instead of drawing each lines you can use doc.rect to draw the rectangle. You can also change the border width using doc.setLineWidth.
doc.setLineWidth(2); doc.rect(10, 20, 150, 75); doc.save('sample-file.pdf'); See example here http://jsfiddle.net/508p61r6/3/http://jsfiddle.net/508p61r6/5/