Print from the browser
By Jason Galea · Part of the How to create a PDF benchmark
Takeaway: Chrome's Save as PDF builds a much better tag tree than most people expect, but it still fails five PDF/UA-1 rules, cannot emit PDF/A, and only works for manual one-off jobs.
| Sample PDF | Size | Pages | Tagged | PDF/UA-1 | PDF/A-2a | Zürich / 東京 / 🚀 | Fig alt | Table tags |
|---|---|---|---|---|---|---|---|---|
| browser-print | 114 KB | 2 | yes | fail (5r / 13c) | fail (4r / 2090c) | ✓ ✓ ✓ | ✓ | ✓ |
Checked with veraPDF 1.28.2 (r = failed rules, c = failed checks). Click any sample name to download the PDF, or test your own output in /validate (free, no sign-in) and inspect structure trees in /tags.
If you just need a PDF of a web page once, pressing Cmd+P or Ctrl+P and choosing "Save as PDF" is the obvious move. No tools to install, no code to write, and you see the page before you save it.
The interesting part is what actually comes out when you open the resulting file in a validator.
What we observed in Chrome
We rendered the shared Quarterly Field Report (reference.html) through Chromium 158 using the same settings Chrome's "Save as PDF" dialog uses (preferCSSPageSize: true, tagged: true, outline: true).
The output (browser-print.pdf, 114 KB, 2 pages) surprised me a bit. Chrome tagged the document properly: H1, H2, H3, both lists (L/LI/Lbl), a real Table with 37 TR, 4 TH and 144 TD elements, the Figure with its /Alt text pulled straight from <img alt>, and the Link. Accented text (Zürich, São Paulo), CJK (東京) and colour emoji (🚀 ✅) all rendered and survived text extraction.
Chrome also honoured CSS @page margin boxes (counter(page) and counter(pages)), so the "Page n of N" footer worked in pure CSS without any browser chrome tricks.
It still failed PDF/UA-1 on 5 rules (13 checks total):
7.1-3: untagged page furniture (headers, footers, rules) is not marked as an Artifact (8 checks).7.1-5: non-standard structure types are not role-mapped back to standard PDF tag types (2 checks).7.18.5-2: the link annotation is missing a/Contentsdescription.7.18.1-2: an annotation lacks/Contentsor/Alt.7.1-8: there is no XMP metadata stream (and no PDF/UA identifier).
It also failed PDF/A-2a on 4 rules (2,090 checks, almost all uncalibrated DeviceRGB without an output intent). Browser print does not have a PDF/A mode.
What about Firefox and Safari?
We ran our automated suite on Linux, so Firefox and Safari print-to-PDF samples are not in the table yet. The general reputation is that both produce weaker tag trees than Chrome, and we will add Mac captures for them to confirm rather than guessing.
Pros and cons
Pros
- Free, already installed, zero setup.
- You get a visual match of the web page you are looking at.
- Chrome produces a decent structure tree out of the box, including real table cells and image alt text.
Cons
- Strictly manual. Fine for one document, useless for a backend pipeline.
- Output varies by browser, OS and whatever print dialog settings the user happened to leave ticked (such as default URL and date headers).
- Cannot produce PDF/UA-1 or PDF/A-2a compliant files.
- No PDF metadata control beyond the HTML
<title>.
When it makes sense
Use browser print for one-off documents where you are sitting at the keyboard and standards compliance is not a requirement.
If you want the same HTML and CSS workflow automated on a server, move on to Headless browsers or CSS paged media. If you already saved a PDF from the browser and need to check how close it is to accessible, drop it into /validate.