Injected into Gmail
A pill-shaped Export button appears beside the subject heading, with a dropdown offering PDF
and image output. A MutationObserver re-injects it whenever Gmail swaps in another
conversation.
Mail Thread Export is a Chrome extension (Manifest V3) that injects an Export button next to the
subject line of the Gmail conversation you have open. Choosing Export as PDF or Export as Image
clones the conversation DOM, removes the surrounding Gmail interface, rasterises the result with
html2canvas at 2x, and hands you a file.
Gmail’s print view introduces page breaks, its own headers and footers, and a print stylesheet that frequently mangles the layout of rich HTML mail. This extension captures what is actually on screen instead, and writes it to a single continuous page sized to the content.
Injected into Gmail
A pill-shaped Export button appears beside the subject heading, with a dropdown offering PDF
and image output. A MutationObserver re-injects it whenever Gmail swaps in another
conversation.
One continuous page
The PDF page is sized to the rendered canvas, so long threads are never cut in half by a page break.
Interface stripped
Toolbars, reply/forward/more buttons, stars, labels, alerts and tooltip-bearing controls are removed from the clone. English and German Gmail labels are both recognised.
Stable 800 px layout
The clone renders at a fixed desktop width, so output does not depend on your window size.
CJK-safe font stack
The export forces a Japanese-capable font stack so CJK mail does not render as tofu boxes.
No network, no storage
No fetch calls, no analytics, no accounts, no storage permission. Everything happens in the
page.
Installation
Build from source and load unpacked — Installation.
Configuration
Every tunable value and where to change it — Configuration.