I am using code suggested in following link. Following is the function for pdf conversion which i have used.
function pdfGenerator(){
var doc = new jsPDF();
var elementHandler = {
'#ignorePDF': function (element, renderer) {
return true;
}
};
var source = window.document.getElementsByTagName("body")[0];
doc.fromHTML(
source,
15,
15,
{
'width': 180,'elementHandlers': elementHandler
});
doc.output("dataurlnewwindow");
}
I have downloaded latest version mentioned in the following link and added it as external jar. Can u pleases suggest how to include scripts of
jspdf.js
jspdf.plugin.from_html.js
jspdf.plugin.split_text_to_size.js
jspdf.plugin.standard_fonts_metrics.js
in my project? I am getting blank pdf as output.