diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.22k stars 1.11k forks source link

Text overflows vertically when trying to render tables #2735

Open gumbyscout opened 2 weeks ago

gumbyscout commented 2 weeks ago

Describe the bug When trying to render a table with long text content in its cells, the text frequently overflows out of their respective cells. Also probably semi related, but borders will sometimes follow the overflowing text in being drawn over elements such as footers.

I've tried suggestions in other issues (like splitting the text before passing it as a child to a <Text/> component) and none of them fixed the issue for me.

To Reproduce REPL example

Expected behavior Text is contained within its parent cell.

Screenshots image image

Desktop (please complete the following information):

stefanwittwer commented 1 week ago

+1, I've encountered the same issue in the past