jsPDF-AutoTable
jsPDF-AutoTable copied to clipboard
increased lineHeight cuts off multi-line cells
I found the following bug in jsPDF-AutoTable v3.5.13:
Using a line height greater than the default (1.15) is not taken into account by jsPDF-AutoTable, causing multi-line cells to get cut off vertically.
Steps to reproduce:
const doc = new jsPDF({
lineHeight: 1.5
})
doc.autoTable({
body: [
['text \n on \n four \n lines'],
['text on one line'],
['text on one line'],
],
})
This issue was previously pointed on in August 2020 by another user, but for some reason that issue was closed, even though this is a clearly a bug.
True! There is a stale PR open for this https://github.com/simonbengtsson/jsPDF-AutoTable/pull/754, but a new PR would be great.
Released in v3.7.0