How to Save a Webpage as a PDF: The Four Things That Break

TL;DR: Saving a webpage as a PDF is a print job, not a copy. The browser reflows the page for paper, which means long pages split at arbitrary points, sticky headers repeat on every page, and anything behind a scroll or a hover interaction simply does not exist. Knowing which four things break tells you whether to accept the output or reach for a different method.

It is a print job, and that changes everything

When you choose Print then Save as PDF, the browser does not capture the page as you see it. It builds a print representation: a paper-width viewport, no viewport units, background graphics off by default, and pagination imposed on content that was never designed to paginate.

Everything surprising about the result follows from that. A page that looks continuous on screen becomes a series of sheets with breaks in arbitrary places. A navigation bar fixed to the top of the screen becomes a repeated band at the top of every sheet. And a page that loads more content as you scroll prints only what had loaded at that moment.

None of this is a bug. It is the browser doing what a printer asked for.

Break one: pagination through the middle of content

The most common complaint is a heading stranded at the bottom of a page with its paragraph on the next one, or a table split so that the header appears once and the continuation has none.

Some of this is fixable before printing. Chrome’s print preview has a “Margins” dropdown that includes a custom scale, and reducing the scale to 90 or 85 percent often pulls a stranded heading back onto the same sheet. It is a blunt instrument, but it takes five seconds and frequently works.

Beyond that, the fix lives in the page’s CSS, which you may not control. If the site defines page-break rules — a welcome but uncommon courtesy — the output will be tidy. If it does not, you get what you get.

The workaround that always works: print the page as a single long image. Scroll-capture tools do this, but so does printing at a very large custom paper size, which puts the entire page on one enormous sheet. Neither is a PDF of a document, but both preserve the layout.

Break two: headers, footers, and sticky navigation

A navigation bar positioned with fixed or sticky positioning does not know it is being printed. In the print representation it may appear once at the top, or repeat on every page, or overlap content that was laid out assuming it would be out of the way.

Cookie banners are worse. They are usually rendered in place rather than fixed, so they consume a band of the first page and occasionally reappear on later ones if the site re-renders.

Two pragmatic responses: dismiss any overlays before printing (cookie banners, newsletter modals, chat widgets), and if the sticky header still repeats, accept it or capture the content region instead of the whole page.

You can also turn on background graphics, which sometimes makes the header render correctly, and sometimes makes it worse. Try it and look at the preview before committing.

Break three: lazy-loaded content that never loaded

Modern pages load images and further paragraphs as you scroll. The print engine does not scroll. It renders what is in the DOM at the moment you press print.

The symptom is a PDF with the top third of an article and then blank space, or a page of images that are all grey placeholders. If you print immediately after opening, you may capture less than half of what a human sees.

The fix is mechanical: scroll to the bottom of the page, wait for everything to load, scroll back to the top, then print. For infinite-scroll pages, you have to scroll repeatedly until the end marker appears. This feels absurd and is genuinely necessary.

An alternative for article reading is the browser’s reader mode, which strips navigation, loads all text, and prints as a clean document. Where it is available, it produces a far better PDF than the normal print path.

Break four: links, backgrounds, and other losses

Three smaller losses that add up.

Hyperlinks. Chrome and Edge can preserve clickable links in the PDF; the option is usually on by default. Firefox historically drops them. If the links matter, check the output by clicking one.

Background colours. Off by default because they waste ink. A page that communicates with coloured panels or highlighted callouts prints as undifferentiated black text on white, which can change the meaning.

Responsive layouts. The print viewport is roughly the width of paper, not your window. A desktop layout with a sidebar prints with the sidebar either dropped or reflowed to the bottom, and a mobile layout may print with a hamburger menu icon frozen open or closed.

Doing it properly on each browser

All major browsers use the same path — Ctrl+P or Cmd+P, then choose the destination — but the options differ.

  • Chrome and Edge. Destination: Save as PDF. Options for paper size, margins, scale, background graphics, headers and footers, and page ranges. The most complete set.
  • Firefox. Destination: Save to PDF. Fewer options, no scale control in some versions, and a habit of dropping link annotations.
  • Safari. File, Export as PDF gives a single-page document preserving the layout; File, Print then the PDF dropdown paginates like a printer. The Export route is usually better for reading.

Turn off “Headers and footers” unless you want the date, page title, URL, and page number in the margins. Most people find them noisy; some find the URL essential for citing.

When the PDF is not the goal

Sometimes the webpage PDF exists only to be shared as a visual — pasted into a report, attached to a chat, dropped into a slide. In that case, the pagination problems are irrelevant and the useful output is an image rather than a document.

Screenshotting is the direct route, and for anything longer than a viewport a full-page capture works better than stitching. If you already have a related PDF and need pages as images, the PDF to image converter handles that trip in the other direction.

It is also worth asking whether a PDF of a webpage is the right artifact at all. Links rot, layouts update, and a printed page freezes a moment in time. For citation, a link plus an archive URL is often more useful than a PDF; for a record of what a page said on a date, the PDF is exactly right.

The short version

Printing a webpage to PDF is a reflow for paper, so expect breaks mid-paragraph, repeated headers, and missing lazy-loaded content. Scroll to the bottom first, dismiss overlays, check the preview, and consider reader mode for articles. Turn off margin headers unless you need the URL.