Facing Some Design Issue About Jspdf
I am using jsPDF it works fine. It downloads the document as 'PDF' but the thing is I am getting wrong design for the same, I want the table as displayed on the site. How to set t
Solution 1:
I have posted a sample code on something related to your question.. That code will export html table to PDF format using jsPDF tool
Look for the following lines
doc.cellInitialize();
. . .
doc.cell(leftMargin, topMargin, cellWidth, rowWidth, cellContent, i)
Following is the link to find the sample code I was talking about
How to set column width for generating pdf using jsPDF
If you do this way you will get the tabular format in PDF. Let me know if you have any questions.. Don't forget to vote if you find it helpful
Post a Comment for "Facing Some Design Issue About Jspdf"