Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pulvinar diam eu ' +
- 'dolor bibendum et varius diam laoreet. Morbi eget rutrum enim. Sed enim ipsum, ' +
- 'posuere nec hendrerit non, commodo quis tortor. Fusce id nisl augue. Fusce at ' +
- 'lectus ut libero vehicula imperdiet.'
- doc.text 'This text is left aligned. ' + lorem, 100, 100,
- width: 410
- align: 'left'
- doc.moveDown()
- doc.text 'This text is centered. ' + lorem,
- width: 410
- align: 'center'
- doc.moveDown()
- doc.text 'This text is right aligned. ' + lorem,
- width: 410
- align: 'right'
- doc.moveDown()
- doc.text 'This text is justified. ' + lorem,
- width: 410
- align: 'justify'
- # draw bounding rectangle
- doc.rect(100, 100, 410, doc.y - 100)
- .stroke()
Add Comment
Please, Sign In to add comment