Embedding JPG Snapshots in a Production PDF Pipeline Without Breaking a11y or Print Layout An engineer details how to embed JPG snapshots into a production PDF pipeline without breaking accessibility or print layout, covering three common scenarios: live rendering with Headless Chrome or LaTeX, bulk ingestion with pdfkit or reportlab, and PDF/A conformance. The post warns against naive JPG-to-PDF conversion and recommends defaulting to long-edge 1600 px at JPEG quality 82 for optimal file size and print quality. You already have an automated report pipeline that emits PDF invoices, contracts, or inspections. One day product asks: "Can we also drop in the photographer's JPG from the site visit, or the customer's signature image?" The conversion is trivial. The blast radius is not. A naive "merge the JPG into the PDF" solution leaks through to receipts, screen readers, and print drivers in ways that only show up weeks later. This article is for the engineer who has to plug that requirement in today, not the document specialist who gets a week to plan it. Calling this a "JPG to PDF conversion" is the first framing mistake. Almost no real product asks the user to upload JPGs and download a PDF. They ask for a PDF with JPG content embedded into an existing document, at a specific point in the layout, sized to a specific box, addressed at a specific audience. The conversion is a side-effect, not the deliverable. In a production pipeline you generally face one of three flavors: Each flavor has different failure modes, even though the file type looks the same. Conflating them is how teams ship a "working" feature that later fails a regulator's inspection. For 1 , most reporting stacks already have a rendering engine. If you are using Headless Chrome via Puppeteer or Playwright, you can simply emit an HTML document with