Im generating a pdf using jspdf which contains the data of a table on my webpage, some entries in table are longer and so it is not displaying the contents of those cells in full, it is just displaying the content of those particular cells as much as it can display in one line and remaining content is dropped. next line of pdf document contain next cells data. Can anyone help??
My code:
$("#button3").click(function(){
var limit = 5000;
var count = 0;
arr = new Array();
$("td").each(function () {
t = $(this).text();
if(count <= limit){
arr.push(t);
count ++;
}
});
var table = $("#example2").text();
var pdf = new jsPDF();
pdf.setFontSize(11);
pdf.text(20, 20,arr);
pdf.save('message.pdf');
});