code:
function demopdf() { var date = new date(); var pdfname = "<%=request.getparameter("name")%>"; var pdf = new jspdf('l', 'pt', 'a4'); var res = pdf.autotablehtmltojson(document.getelementbyid("table")); pdf.autotable(res.columns, res.data, { starty: 10, styles: { fontsize: 10, rowheight: 20, }, columnstyles: { 1: {columnwidth: 'auto'} } }); pdf.save(pdfname +"_presented_employees"+ ".pdf"); }; demopdf();
Comments
Post a Comment