Export HTML table to pdf using jspdf

Here is working example: in head <script type=”text/javascript” src=”https://stackoverflow.com/questions/23035858/jspdf.debug.js”></script> script: <script type=”text/javascript”> function demoFromHTML() { var pdf = new jsPDF(‘p’, ‘pt’, ‘letter’); // source can be HTML-formatted string, or a reference // to an actual DOM element from which the text will be scraped. source = $(‘#customers’)[0]; // we support special element handlers. Register them … Read more