Hi,
I'm trying to control the overflow of autoTableText but I can't achieve it.
This is my actual output:

(check the text at the right border.. should be inside of the blue rect)
And I'm having this
...
doc.setFillColor(0, 255, 255);
doc.rect(cell.x, cell.y, cell.width*2, cell.height*2, 'F');
doc.autoTableText(d.notes[0].note, cell.x + 5, cell.y + cell.height / 2, {
halign: 'left',
valign: 'middle',
overflow: 'linebreak'
});
...
How I should do it?
autoTableText does only support the valign and halign styles, not overflow. To make the text fit the box I would use the jspdf functions splitTextToSize and getStringUnitWidth.
As you can see on my reaction... <3 thanks
Oops, If any user need this...I solved it using splitTextToSize and passing the array to autoTableText
Most helpful comment
autoTableTextdoes only support thevalignandhalignstyles, notoverflow. To make the text fit the box I would use the jspdf functionssplitTextToSizeandgetStringUnitWidth.