I spent a lot of time looking for a good representation of my tables, then I found this plugin (https://github.com/simonbengtsson/jsPDF-AutoTable), It works great, includes themes, rowspan, colspan, extract data from html, works with json, you can also personalize your headers and make them horizontals.
The image below is an example:
I spent a lot of time looking for a good representation of my tables, then I found this plugin (https://github.com/simonbengtsson/jsPDF-AutoTable), It works great, includes themes, rowspan, colspan, extract data from html, works with json, you can also personalize your headers and make them horizontals.
The image below is an example:
You have to use something like -- doc.setLineWidth(2);
for line border.. Please look the following for sample code
How to set column width for generating pdf using jsPDF
Generate a pdf table with the jspdf library
How to style the table with jspdf
jsPDF - images with doc.table() method.
Anyone with jsPDF experience? Having issue with resizing content to fit in single PDF, could use some guidance
Videos
» npm install jspdf-autotable
» npm install jspdf-autotable