Row overlaps next column with jspdf -automatic and row overflow

I am using jspdf-autoTable with the option overflow: 'linebreak'to create pdf. The problem is that some long texts overlap the next column. For example, if my text is “hello hello greet,” it will print as “hello hello,” and the remaining “come” overlap in the next column. How can I use linebreak without overlapping the next column?

Note. Linebreak works fine until I change the text in drawCell method.

I get this weird behavior too:

What am I sending:

Paragraph writing is the foundation of all essay writing whether the form is expository persuasive narrative or creative

Inside my drawCell method:

["Paragraph writing is the foundation of all","essay writing whether the form is expository","persuasive narrative or creative"]

I do not know why it automatically split the string into an array. Could this be causing the overlap problem?

+2
1

, . jspdf . , didParseCell.

+1

Source: https://habr.com/ru/post/1605849/


All Articles