jsPDF provide good support for tables using [jsPDF-AutoTable][1]jsPDF-AutoTable plugin.
jsPDF and pdfmake are two javascript libraries widely used to generate pdf. I have used both and would like to share few points i observed:
jsPDF
- Performance is really good. I would able to generate PDF of 2000 pages in 5-6 seconds.
- It doesn't support utf-8 format i.e. you won't be able to render pdf in chinese, turkish and other languages.
- It doesn't support row break and table inside table.
pdfmake
- Performace is good if you are generating pdf of less than 40 pages. Performance degrade exponentially if you generate larged pdf. Almost kill the browser.
- Support utf-8 format.
- Support row break and table inside table.
- Easy to use.
You can make wise decision based on your requirement. [1]: https://github.com/simonbengtsson/jsPDF-AutoTable