You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: "Table cell is too big to be rendered" when generating PDF #414
During table layout, TPPDF measures each cell. If a cell’s required height is larger than the remaining printable height on the page and the library cannot split the row/cell across pages, PDFTableObject throws tableCellTooLarge (“Table cell is too big to be rendered: TPPDF.PDFTableCell”).
Typical causes for this are cells with a lot of text or tall content (e.g., big images, long unbreakable words/URLs) that won’t fit in the remaining space on the current page; very large fonts/padding; or a row whose minimum height is larger than the full page’s drawable area (inside margins), making it impossible to place even on an empty page.
Without knowing your document setup I can't pinpoint it, but I assume it's caused by images being too large (which is unclear how that should be handled)
It would be awesome to be able to specify a maximum height for a table row so that cells with a lot of text get truncated instead of throwing an error. I just got an email from a customer about this today. I had to tell them the PDF engine I'm using doesn't support large text blocks within table cells. Would be great to have a solution for this.
Activity
brendand commentedon Oct 29, 2025
I would like to know the solution to this also. It would be nice if it could automatically truncate the content if it's too large to render in a cell.
philprime commentedon Dec 23, 2025
Hey everyone, sorry for the long delay, notifications got lost in my inbox.
The error is used here:
TPPDF/Source/Internal/Table/PDFTableObject.swift
Lines 363 to 367 in c5bc97c
During table layout, TPPDF measures each cell. If a cell’s required height is larger than the remaining printable height on the page and the library cannot split the row/cell across pages, PDFTableObject throws
tableCellTooLarge(“Table cell is too big to be rendered: TPPDF.PDFTableCell”).Typical causes for this are cells with a lot of text or tall content (e.g., big images, long unbreakable words/URLs) that won’t fit in the remaining space on the current page; very large fonts/padding; or a row whose minimum height is larger than the full page’s drawable area (inside margins), making it impossible to place even on an empty page.
Without knowing your document setup I can't pinpoint it, but I assume it's caused by images being too large (which is unclear how that should be handled)
Also see #405
NZQN23 commentedon Dec 23, 2025
Thanks for getting back to this. In my opinion, cropping the cell (respectively its content) would be better than throwing an error.
brendand commentedon Jan 25, 2026
It would be awesome to be able to specify a maximum height for a table row so that cells with a lot of text get truncated instead of throwing an error. I just got an email from a customer about this today. I had to tell them the PDF engine I'm using doesn't support large text blocks within table cells. Would be great to have a solution for this.