I’ve got an invoice with a line-items table that’s about 18 rows. It fits on page one in the editor, but when I export, the last few rows jump to page two and the header row goes with them, leaving an orphaned header at the top of page two with nothing under it on page one. Is there a way to keep it tidy?
QuestionAnswered
Table splits across a page break and the header row gets stranded
2 replies · 787 views
Lena M.Max
6 rep
2 Answers
Vlad K.Staff
32 rep
Accepted
Good catch, this usually comes down to the table not having a stable width to lay out against, so the splitter makes a worse guess about where to break.
Two things fix it almost every time:
- Give the columns explicit widths (select the table → Layout, set the column widths instead of leaving them auto). With fixed widths the engine measures rows consistently and breaks between them cleanly.
- If you’re using
border-collapse, keep it on, we account for collapsed borders in the row heights now, which was a source of off-by-a-few-pixels breaks.
We also changed the splitter so a whole table that fits is moved in flow as a unit, and a heading directly above a table stays glued to it instead of being pushed alone to the next page. So once the widths are explicit you shouldn’t see the stranded header again. If you still do, paste the doc here and I’ll look.
Lena M.Max
6 rep
update: that did the trick