Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 140 characters in body
Source Link
phil652
  • 1.5k
  • 2
  • 25
  • 49

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/

Instead of drawing each lines you can use doc.rect to draw the rectangle.

doc.rect(10, 20, 150, 75); doc.save('sample-file.pdf'); 

See example here http://jsfiddle.net/508p61r6/3/

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/5/

Source Link
phil652
  • 1.5k
  • 2
  • 25
  • 49

Instead of drawing each lines you can use doc.rect to draw the rectangle.

doc.rect(10, 20, 150, 75); doc.save('sample-file.pdf'); 

See example here http://jsfiddle.net/508p61r6/3/