how to use addHTML function in jsPDF
First, you have to include jsPDF library, and also html2canvas or rasterizeHTML. Then, just create a jsPDF object and save to pdf the entire ‘body’ tag (or whatever): You can find more examples on the jsPDF website: http://mrrio.github.io/jsPDF/