simonbengtsson / jsPDF-AutoTable

jsPDF plugin for generating PDF tables with javascript
https://simonbengtsson.github.io/jsPDF-AutoTable/
MIT License
2.33k stars 624 forks source link

Merge Cell Inside the body of the table #1054

Closed bonbonsiregar closed 6 months ago

bonbonsiregar commented 6 months ago

Is there a built in function for merging cells inside the body of autotable? In header we can do that using rowspan and colspan and set halign and valign value, but i can't seem to find a workaround to modify the cells.

this is what i managed to do image

and this is what i expected image

I don't need the excess horizontal line if the cell is empty.

mmghv commented 6 months ago

You can do the same for the body cells as the header

Example: https://simonbengtsson.github.io/jsPDF-AutoTable/#spans

Docs: https://github.com/simonbengtsson/jsPDF-AutoTable#:~:text=Usage%20with%20colspan%2C%20rowspan