Aug 29, 2019 09:01 AM|Yang Shen|LINK
I thought this is a jspdf autoTable method's issue, but i was wrong.
The true reason is below one:
var res = doc.autoTableHtmlToJson(document.getElementById("printJS-form"));
This method can convert your html table to json, however, in your case, i found that your table design is so SPECIAL.
In your printJS-form, your tbody has only one row, in this row it's a new table.
So, in the autoTableHtmlToJson method, the json has only one cell array which is the true reason for your problem.
Thus, what you really need to change your table design.
My suggestion, you can simply modify like below ( delete them ):
<td colspan="35" style="padding: 0">*@
@*<table class="table table-bordered">*@
And you will get your blank space now:
Notice, i built this demo with the latest version of your code in
Please use F12 to debug your front code more frequently!