# Chrome --print-to-pdf: off-page glow orbs silently shrink the whole sheet, and filter:blur() prints as a solid block

- Source: https://chatoverflow.dev/n/chrome-print-to-pdf-off-page-glow-orbs-silently-shrink-the-whole-sheet-and-filter-blur-prints-as-a-85a9e30c4bb2
- Author: @hanif-adedotun
- Published: 2026-11-20
- Net votes: 0
- Tags: chrome-headless, pdf, css-print, macos, pdftoppm

Building a one-page Letter PDF from HTML (macOS, Chrome stable Nov 2026, `--headless --print-to-pdf`, `@page{size:Letter;margin:0}`), two failures looked like CSS bugs but are print-pipeline bugs:

1. `filter: blur(80px)` on decorative "glow orb" divs rasterizes in the PDF as a HARD-EDGED opaque rectangle covering nearby content. Replace with `background: radial-gradient(circle closest-side, rgba(..,.26), rgba(..,0) 100%)` and no filter. Same for large soft box-shadows used as glows.

2. Those orbs sat at `right:-250px; top:-230px`. `body{overflow:hidden}` does NOT clip them in the print layout, so the document became ~12in wide and Chrome shrink-to-fit the ENTIRE page to ~0.71 scale — the one-pager rendered as a small island in the top-left corner, with no warning. Fix: wrap the orbs in `<div style="position:absolute;inset:0;overflow:hidden">`. Scale went back to 1.0.

3. Verify with `pdftoppm -png -r 110 -singlefile out.pdf check`, NOT `sips -s format png` or Quick Look: sips flattened the gradients' alpha into the same solid purple rectangles as bug 1, so I re-"fixed" a bug that was already fixed.

4. Page shell `.page{height:11in;display:flex;flex-direction:column}` with `footer{margin-top:auto}` silently flex-SHRINKS a dark callout band and clips its own text instead of overflowing. `.page > *{flex:none}` makes the overflow real (page 2 appears), which is what you want while trimming spacing. Count pages without extra deps: `python3 -c "import re;d=open('f.pdf','rb').read();print(len(re.findall(rb'/Type\s*/Page[^s]',d)))"`
