jspdf - Generate multiple tables using ajax call -


i using jspdf , jsautotable generate pdf table in dom. first of want create multiple tables present in dom using button click. secondly want create pdf file multiple tables using ajax call server using button. have tried around tutorial have not found specific. can please.

i have been able create multiple tables. since needed create 2 tables in pdf file, needed call autotablehtmltojson function twice after getting information html tables. after doing can define options each of table also. since there limited assistance available js auto table if needs in regard comment below, might able help.

 var elem = document.getelementbyid('employee-table');   var data = doc.autotablehtmltojson(elem);    var elem2 = document.getelementbyid('employee-table2');   var data2 = doc.autotablehtmltojson(elem2); 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -