# Web page to PDF: print, screenshot or slices?

> A PDF of a web page as print output, one screenshot or sliced images, tested on four pages: text, links, breaks, size and fidelity, with a pick per reader.

Trade-off table by Serghei Pogor, founder of CurlShot (https://curlshot.com/about/serghei-pogor). Published 25 November 2026. Page for people: https://curlshot.com/blog/web-page-to-pdf-print-or-screenshot

Make the PDF from the live page, not from a picture of it, unless fidelity is the whole point. On four test pages, the tall and the print PDFs kept their text as text, and the screen look kept all 66 link targets where the print stylesheet kept 27. A picture on a PDF page was 24× larger and held no text and no links. In CurlShot, a PDF request uses the screen look unless media_type=print is set. Chromium 153, 12 November 2026.

## Key facts

- A picture placed on a PDF page held 0 of 112 text blocks and no link targets. The same page as a tall vector PDF kept all 112 and all 66 targets, in 60 KB instead of 1.4 MB.
- CurlShot draws a PDF with the screen media type unless you send media_type=print. On the terms page that gave 18 A4 pages with the cookie bar on 18 of them, where the print stylesheet gave 11 clean pages and 27 of 66 link targets.
- A hero of min-height: 100vh made the one-page PDF of the landing page hold 3 of 19 text blocks, because in paged media 100vh is the whole page. Pinning the hero to 800 px with the styles option brought back all 19.
- Cutting a screenshot into A4-shaped slices ran a page edge through a line of text at 10 of 19 edges. A page over 14,400 px cannot be one PDF page: the 20,087 px page lost 60 of 214 text blocks.
- Paged A4 files lay the page out 681 px wide, so the three-column landing page came out with 1 column. Only the picture PDF and the tall page keep the 1,280 px layout.
- None of the PDFs had a structure tree or an outline, so headings are plain large text in every one of them.

## The five outputs
| Output | What it is | How it is made | One API request? |
| --- | --- | --- | --- |
| Print stylesheet, paged | The page drawn with its @media print rules, cut into A4 pages. Text stays text. | `format=pdf&media_type=print&pdf_margin=15mm` | Yes |
| Screen look, paged | The page as it looks in a browser, cut into A4 pages. This is what a PDF request returns without any extra option. | `format=pdf&pdf_margin=15mm` | Yes |
| One tall page | The screen look on a single page as tall as the content. Text stays text. | `format=pdf&pdf_fit_one_page=true` | Yes |
| Screenshot in a PDF | A full-page screenshot placed on one PDF page the size of the picture. Everything is pixels. | `format=png&full_page=true, then put the file on a page with a PDF library` | No, code on your side |
| One image per page | The same screenshot cut into A4-shaped slices, one slice on each PDF page. | `format=png&full_page=true, cut every 1,811 px, one slice per page` | No, code on your side |
| One tall page, hero pinned | The tall page again, with the 100vh hero set to a fixed 800 px first. | `format=pdf&pdf_fit_one_page=true&styles=.hero{min-height:800px}` | Yes |
## The result, page by page
### Terms of service (10,404 px tall)
36 clauses of text, a sticky top bar and contents list, a cookie bar fixed to the bottom, 66 distinct link targets, a print stylesheet that hides all three.

|  | Print stylesheet, paged | Screen look, paged | One tall page | Screenshot in a PDF | One image per page |
| --- | --- | --- | --- | --- | --- |
| File size | 84 KB | 129 KB | 60 KB | 1.4 MB | 1.4 MB |
| Pages | 11 × A4 | 18 × A4 | 1 × 1,280 × 10,405 px | 1 × 1,280 × 10,405 px | 6 × 1,280 × 1,811 px |
| Text you can select | 110 of 112 | 112 of 112 | 112 of 112 | 0 of 112 | 0 of 112 |
| Links that still work | 27 of 66 | 66 of 66 | 66 of 66 | 0 of 66 | 0 of 66 |
| Page breaks | 11 pages; text flows from one to the next | 18 pages; the fixed bar is on 18 of 18 | None: one page | None: one page | Cuts through text at 3 of 5 page edges |
| Looks like the screen | No: the print rules hide the bars and the contents list | Same look, laid out 681 px wide | Same look, 1,280 px wide | Identical: it is the picture | Identical, in pieces |

### Invoice (2,723 px tall)
58 table rows with coloured header and striped rows, a totals box, a pay button, a print stylesheet that keeps rows whole and drops the button.

|  | Print stylesheet, paged | Screen look, paged | One tall page | Screenshot in a PDF | One image per page |
| --- | --- | --- | --- | --- | --- |
| File size | 28 KB | 200 KB | 206 KB | 202 KB | 203 KB |
| Pages | 3 × A4 | 3 × A4 | 1 × 1,280 × 2,724 px | 1 × 1,280 × 2,724 px | 2 × 1,280 × 1,811 px |
| Text you can select | 65 of 65 | 65 of 65 | 65 of 65 | 0 of 65 | 0 of 65 |
| Links that still work | 1 of 2 | 2 of 2 | 2 of 2 | 0 of 2 | 0 of 2 |
| Page breaks | 3 pages; text flows from one to the next | 3 pages; text flows from one to the next | None: one page | None: one page | Cuts through text at 1 of 1 page edges |
| Looks like the screen | No: the print rules drop the shadow and the pay button | Same look, laid out 681 px wide | Same look, 1,280 px wide | Identical: it is the picture | Identical, in pieces |

### Landing page (4,558 px tall)
A 100vh gradient hero with a blurred glass card, a fixed header and a fixed corner bar, nine cards in a three-column grid with shadows, a chart, a lazy picture.

|  | Print stylesheet, paged | Screen look, paged | One tall page | One tall page, hero pinned | Screenshot in a PDF | One image per page |
| --- | --- | --- | --- | --- | --- | --- |
| File size | 289 KB | 626 KB | 72 KB | 522 KB | 2.0 MB | 2.0 MB |
| Pages | 6 × A4 | 6 × A4 | 1 × 1,280 × 4,560 px | 1 × 1,280 × 4,560 px | 1 × 1,280 × 4,560 px | 3 × 1,280 × 1,811 px |
| Text you can select | 18 of 19 | 19 of 19 | 3 of 19 | 19 of 19 | 0 of 19 | 0 of 19 |
| Links that still work | 14 of 19 | 19 of 19 | 6 of 19 | 19 of 19 | 0 of 19 | 0 of 19 |
| Page breaks | 6 pages; text flows from one to the next | 6 pages; the fixed bar is on 6 of 6 | None: one page | None: one page | None: one page | Cuts through text at 2 of 2 page edges |
| Looks like the screen | No: the print rules drop the hero colours and the blur | No: one column instead of three at 681 px, the hero is one page tall | No: only the hero, which grew to the page height | Same look: 3 columns, 2.5% of pixels differ | Identical: it is the picture | Identical, in pieces |

### Long terms page (20,087 px tall)
The terms page with 70 clauses, 20,087 px tall: longer than one PDF page can be.

|  | Print stylesheet, paged | Screen look, paged | One tall page | Screenshot in a PDF | One image per page |
| --- | --- | --- | --- | --- | --- |
| File size | 138 KB | 297 KB | 73 KB | 2.8 MB | 2.8 MB |
| Pages | 21 × A4 | 34 × A4 | 1 × 1,280 × 14,400 px | 1 × 1,280 × 20,088 px | 12 × 1,280 × 1,811 px |
| Text you can select | 212 of 214 | 214 of 214 | 154 of 214 | 0 of 214 | 0 of 214 |
| Links that still work | 49 of 122 | 88 of 122 | 106 of 122 | 0 of 122 | 0 of 122 |
| Page breaks | 21 pages; text flows from one to the next | 34 pages; the fixed bar is on 34 of 34 | One page, cut off at 14,400 px | None: one page | Cuts through text at 4 of 11 page edges |
| Looks like the screen | No: the print rules hide the bars and the contents list | Same look, laid out 681 px wide | Same look for the first 14,400 px | Identical: it is the picture | Identical, in pieces |
## Print media is not the default
A PDF request uses the screen media type unless `media_type=print` is set. On the terms page the screen PDF was 18 pages and kept 66 of 66 link targets, with the fixed cookie bar on 18 of 18 pages. The print PDF was 11 pages and kept 27 of 66: the print stylesheet hid the menu and the contents list.
## A 100vh hero and one tall page
On the landing page the one-page PDF held 3 of 19 text blocks: in paged media a viewport unit is measured against the page area, so a hero of `min-height: 100vh` became as tall as the whole page and pushed the rest onto a second page that the one-page call drops. With `.hero { min-height: 800px }` added through the styles option, it held 19 of 19. The one-page PDF is also capped at 14,400 px (150 inches): the 20,087 px page kept 154 of 214 text blocks.
## What a picture costs
The terms page was 60 KB as a tall PDF and 1.4 MB as a picture on one page (24×). The picture has no selectable text and no links. At 1,280 px across an A4 sheet it is about 155 pixels per inch. Cut into A4-shaped slices, the picture was cut through a line of text at 10 of 19 page edges over the four pages.
## The readers
### Lawyer or archivist
Keeps a page as it was shown, and needs to search it later.

- Pick: One tall page, with a full-page picture next to it (`format=pdf&pdf_fit_one_page=true, plus format=png&full_page=true`)
- Why: The tall PDF kept 112 of 112 text blocks and 66 of 66 link targets in 60 KB, and it has no page breaks to argue about. It is text, so a search finds the clause. The picture is the proof of how the page looked, which a text PDF cannot be.
- Second choice: Over 14,400 px the tall page is cut off (the 20,087 px page kept 154 of 214 blocks). Use the paged screen PDF then, and hide fixed bars first.
- Leave out: A picture-only PDF as the single copy: 1.4 MB for the same page and no text at all. The print stylesheet: it kept 27 of 66 link targets and left out the contents list.

### Invoice developer
Turns an HTML invoice into a PDF that goes to a customer and into accounting.

- Pick: The print stylesheet, paged A4 (`format=pdf&media_type=print&pdf_paper_format=a4&pdf_margin=15mm`)
- Why: The print PDF of the invoice is 28 KB on 3 pages with 65 of 65 text blocks as text. All 58 rows stayed whole and the table header came back on 3 of 3 pages. The screen version of the same page was 7.2× bigger.
- Second choice: The paged screen PDF when the invoice has no print stylesheet and you do not want to write one. It kept the pay button as a link (2 targets) and the header on 1 of 3 pages.
- Leave out: Picture PDFs: 0 of 65 text blocks, so no amount can be read or copied, and the slices cut through a table row at 1 of 1 page edge.

### SEO auditor
Hands a client a record of what a page said and linked to.

- Pick: One tall page, screen look (`format=pdf&pdf_fit_one_page=true`)
- Why: Only the screen look kept every link: 66 of 66 targets on the terms page, against 27 for the print stylesheet, which hides the menu, the footer links and the contents list. The text stayed searchable (112 of 112 blocks).
- Second choice: The paged screen PDF for pages over 14,400 px. It kept 88 of 122 targets on the 20,087 px page.
- Leave out: Picture PDFs, which hold no text and no links to check. And do not expect headings: none of these files has a structure tree or an outline, so a heading is only large text.

### Designer
Shows a client how a page looks, at its real width, with every effect.

- Pick: A full-page picture on one PDF page (`format=png&full_page=true (add device_scale_factor=2 for a sharper file), then put it on a page`)
- Why: The picture PDF of the landing page is the page pixel for pixel: the gradient, the blurred glass card and the shadows are in it, at three columns. It costs 2.0 MB, against 522 KB for the tall vector page.
- Second choice: The tall PDF with the hero pinned, if the client should zoom in or copy text: 2.5% of its pixels differ from the screenshot, and it needs the hero fixed first, because a 100vh hero takes the whole page.
- Leave out: Paged A4 files: the page is laid out 681 px wide, so the landing page turned into 1 column instead of 3 and the hero filled a page.
## How it was run
On 12 November 2026. Four test pages were served from a local server: a terms-of-service page (36 clauses, 10,404 px tall), an invoice (58 rows, 2,723 px), a landing page (gradient hero of 100vh, blur, shadows, grid, a fixed bar, 4,558 px) and the terms again with 70 clauses (20,087 px). Each has a screen layout and a print stylesheet. For every page and every method a new Chromium 153.0.8010.12 context opened it through Playwright 1.63.0 in a 1280 x 800 window and scrolled through it in 350 px steps, as the renderer does before a full-page capture. The paged PDFs are A4 with 15 mm margins. Each PDF was then read back with pdf.js 6.5.438: pages, text, link annotations and structure. The call that makes each PDF uses the arguments the CurlShot renderer passes to page.pdf, read from its source on the day; no request was sent to the API. The pictures were made with a Playwright screenshot of the full page and placed on PDF pages by Chromium. The test pages are synthetic and small, so the numbers show what Chromium does with these pages, not with yours.

## Questions

### Should I print a web page to PDF or screenshot it?

Print it, unless the look is the whole point. In a run on 12 November 2026, the PDFs made by printing kept their text selectable and their links clickable, at 60 KB to 129 KB for a 10,404 px page. A screenshot on a PDF page was 1.4 MB and held no text and no links.

### Why does my PDF contain the menu and the cookie banner?

CurlShot draws a PDF with the screen media type unless media_type=print is set, so the page keeps its menus. A bar fixed to the window is drawn again on every page of a paged PDF: in the test it was on 18 of 18 pages. Use media_type=print if the site has a print stylesheet, or hide the bar with hide_selectors.

### Why does a one-page PDF show only the top of my page?

A hero with min-height: 100vh is measured against the PDF page, which is as tall as the content, so the hero fills it and the rest moves to a second page that the one-page call drops. In the test the landing page kept 3 of 19 text blocks; fixing the hero to 800 px with the styles option kept 19. A page over 14,400 px is also cut off.

### Is a screenshot inside a PDF searchable?

No. In the test the picture PDFs held 0 text blocks and no links on every page, because the PDF contains pixels. A search tool would need OCR, and the file was 24× larger than the tall text PDF of the same page.

### Which PDF should an invoice use?

The paged print PDF at A4. The test invoice came to 28 KB on 3 pages, with every row whole and the table header on every page. The screen version was 7.2× bigger. No file in the test was tagged; PDF/A was not tested.

## Sources

1. Playwright documentation, "Page.pdf: options tagged, outline, pageRanges and margins": https://playwright.dev/docs/api/class-page (checked 12 November 2026)
2. W3C, "CSS Values and Units Module Level 4, 6.1.2 Viewport-percentage lengths": https://www.w3.org/TR/css-values-4/ (checked 12 November 2026)

## Go deeper

- [Website to PDF tool](https://curlshot.com/tools/website-to-pdf)
- [URL to PDF tool](https://curlshot.com/tools/url-to-pdf)
- [URL to PDF API](https://curlshot.com/tools/url-to-pdf-api)
- [PDF rendering](https://curlshot.com/docs/pdf)
- [Customize: styles and hide_selectors](https://curlshot.com/docs/customize)
- [Pricing](https://curlshot.com/pricing)

## Read next

- [Web page to PDF: paper sizes, margins, print CSS](https://curlshot.com/blog/web-page-to-pdf-paper-sizes.md): Paper sizes in millimetres, inches, CSS pixels and points, how margins and page breaks work in a PDF of a web page, and the print CSS that controls them.
- [Capture a web page as evidence that holds up](https://curlshot.com/blog/web-page-as-evidence.md): A checklist for saving a web page as a credible record: what to capture, how to fix the time with a hash and timestamp, and what makes a screenshot weak.
- [PNG, JPEG, WebP or PDF for website screenshots](https://curlshot.com/blog/png-jpeg-webp-pdf-for-screenshots.md): A decision flow, a comparison table and our own file-size measurements for choosing PNG, JPEG, WebP or PDF when you save a screenshot of a web page.
