MrRio/jsPDF — pull request #11 by dvdotsenko (2012-03-07 21:52:50+00:00)
Title: Feature additions + performance boost

Hi.

Summary of changes:
- Support multiline text (hand-chopped only at this point)
- Support dynamically-scaled multi section lines (curves) (line or bezier) with new .lines() method
- Reorg of code:
- Two-times faster now (Per tests in Compare branch)
- Some minor additional API - setting line cap, join etc.

We will be generating signed (as in "containing signature image as vectors") contracts with jsPDF so the features are aligned with that.

There is intention to provide long-term (counted in years) maintenance support for the component (as long as it's in use). Hence, there is a premium on retaining the code formatting in the (JSLint-incompatible) form as it's presented as it makes it easier to read, maintain the code (for us). If code formatting style is a problem for you, just pick and reformat the parts you want and let me know so I will not bug you with pull requests in the future.

Code is ready for review (hence the pull request). By the time you get around forming your opinion of the changes the remaining things should be available:

Things left to do (for us):
- finish documentation (in a week or two)
- (maybe) add plugin that chops long paragraphs into lines. (we already have the code as part of our web front-end code. Just need to yank it out and dress it up as a plug in.) It will be a browser-only, jQuery-based plugin. If you anticipate not being able to / not wanting to include it into your repo, please, let me know and we will not bother with a plugin.

Cheers.