Currently I do not find any properties , through it the automatically new page added while content exceed from page.
When I have created table using jspdf.plugin.cell.js, the pager is added automatically. but if I added simple text then data hide if exceed.
is there any alternative ways to do this?
i have the same issue please comment if this issue is resolved
Yeah, This issue I have solved with some trick.
First took the total height of page, using
pageHeight= pdf.internal.pageSize.height;
Then, while adding text into pdf,
pdf.text(x, y, "value");
I am checking this condition everytime,
if (y>=pageHeight)
{
pdf.addPage();
}
I hope that this will helpful for you.
But still I am unable to find solution for table. I am created table using this js :jspdf.plugin.cell.js. it will create auto-pagging that I don't want. because I did header/footer of jspdf. and my feature not work completely when it comes to table structure. because it's overlap footer/header everytime. I am working on it.
actually the text i am appending is longer than the page width so it not displaying it.
var data= $('#pdfData').html(); // size of data is longer than page width so that display text that fit in page and ignore rest
pdf.text(x, y, data);
bhumikat, please post or send me an example of how to successfully use jspdf.plugin.cell. There is no documentation and my project cannot continue without me learning how to use it. Thanks. (email: [email protected])
please refer to this link.
have written the fix here
http://stackoverflow.com/questions/25904440/jspdf-addhtml-multiple-canvas-page
I am printing a table into pdf but the problem is, row count is dynamic. Sometime it is 10 only and sometime it becomes 10000 also. Now when content goes beyond the limit of page it is throwing some errors. Any one can help me help me out Please..!
Please open your own Issue.
Most helpful comment
Yeah, This issue I have solved with some trick.
First took the total height of page, using
pageHeight= pdf.internal.pageSize.height;
Then, while adding text into pdf,
pdf.text(x, y, "value");
I am checking this condition everytime,
if (y>=pageHeight)
{
pdf.addPage();
}
I hope that this will helpful for you.
But still I am unable to find solution for table. I am created table using this js :jspdf.plugin.cell.js. it will create auto-pagging that I don't want. because I did header/footer of jspdf. and my feature not work completely when it comes to table structure. because it's overlap footer/header everytime. I am working on it.