Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html content in jspdf

var doc = new jsPDF();
$('#generatereport').click(function() {
   doc.fromHTML($('#lppresults')[0], 15, 15, {
      width: 170
   }, function() {
      doc.save('sample-file.pdf');
   });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #content #jspdf
ADD COMMENT
Topic
Name
8+9 =