I have used jsPDF but the printed html was quite ugly so I have decided to create the table manualy.
Here is an example of the frame:
doc.setFontSize(22)
lineNumber = lineNumber - 6 // total number of mm in the table
doc.text(80, 20, 'Dayly tasks') // Title
doc.setFontSize(12)
doc.line(18, 30, 18, lineNumber) //first vertical line
doc.line(192, 30, 192, lineNumber) //last vertical line
doc.line(18, lineNumber, 192, lineNumber)// last horizontal line
doc.line(18, 30, 192, 30) // first horizontal line
//drax inside the table
doc.line(18, 40, 192, 40) // colon name
doc.line(42, 30, 42, lineNumber) //col day
doc.line(172, 30, 172, lineNumber) // col activity
doc.line(152, 30, 152, lineNumber) // col duration
doc.setFontType("bold");
doc.text(20, 35, 'Date');
doc.text(70, 35, 'Activity Comment');
doc.text(154, 35, 'Duration');
doc.text(174, 35, 'Overtime')
doc.setFontType("normal");
doc.text(180, 280, pageNumber + '')
Where lineNumber
is firstly calculated.
with best regards