ScreenshotNeo

BlogHTML to image & PDF

How to Save a Webpage as PDF When It Has Infinite Scroll

Learn when browser print-to-PDF works, how to capture pages that load as you scroll, and how to check that your saved PDF contains the content you need.

By the ScreenshotNeo team4 October 20269 min read

Start with your browser’s Print command and choose its PDF destination. Let the page load the content you need first, inspect the print preview for missing sections and awkward page breaks, then save and check the PDF. Infinite-scroll pages often load more content only as you scroll, and print output can differ from the page on screen. If printing omits content or changes a layout you need to preserve, use a full-page capture method supported by your browser and device, then inspect that PDF too.

Choose print-to-PDF when you want a paginated document that is convenient to read, search, or print. Choose a visual capture when the page’s appearance matters more than print-style layout. A visual capture may not provide the same selectable text or accessibility structure as a document rendered for printing.

1. Load the content you want before saving

Infinite scroll means that more content may appear as you move down the page. Before opening Print, scroll through the sections you need and wait for each one to finish loading. If you need the whole article or feed, continue until you reach its end or until the site stops adding content. Some pages use a “Load more” button or require you to sign in; handle those steps before printing.

  1. Open the webpage and wait for its initial content to finish loading.
  2. Scroll downward in increments through the content you want to keep. Pause after each increment so images and new sections can appear.
  3. Check the bottom of the page for a loading indicator, a “Load more” control, or an end marker. Use the site’s own controls where needed.
  4. Return to the top if you prefer the PDF to begin there. Then open the browser’s Print command.
  5. Inspect the preview and saved PDF. Confirm that the top, a middle section, and the bottom you intended to include are present.

This workflow is practical guidance, not a guarantee that every site will print all dynamically loaded content. Browser support instructions do not promise complete printing for every infinite-scroll implementation.

2. Try browser print-to-PDF first

Firefox desktop

Open the Firefox menu and choose Print. In the print preview, choose Save to PDF as the destination. Adjust orientation, pages, scale, margins, paper size, and background options for the document you need. If Firefox offers Simplified formatting for that page, you can try it for a less cluttered article; using Simplified format disables printed backgrounds. Firefox notes that some websites are designed to look different on paper, so treat the preview as a check rather than assuming it matches the screen. See Mozilla’s Firefox printing instructions.

Microsoft Edge

Open Print from the Edge menu, or press Ctrl+P on Windows or Command+P on macOS. To print a simpler article view, Edge’s Immersive Reader may help on supported websites. Reader availability depends on the site. See Microsoft’s Edge printing instructions.

Other browsers

Look for Print in the browser menu or use its documented print shortcut, then select a PDF destination if available. Names and controls vary by browser and operating system. The essential steps are the same: load the content first, check the preview, save, and verify the file.

  • Coverage: Does the preview show the first and last sections you intended to save?
  • Scale: Is text readable without clipping columns or shrinking the page too far?
  • Orientation and paper: Would landscape or a different paper size make a wide table or chart easier to read?
  • Margins and page breaks: Are headings, images, or tables split in inconvenient places?
  • Backgrounds: If colors or backgrounds convey meaning, check whether the browser will include them. Simplified formatting in Firefox disables printed backgrounds.
  • Page range: Make sure you have not limited the output to only the currently visible or selected pages.

3. Use a full-page capture if print output is unsuitable

A full-page capture records the page’s displayed appearance and can be useful when print styles omit content or substantially change the layout. The exact procedure and output depend on the browser, extension, device, and page. Inspect the finished PDF to understand whether it is a paginated print rendering or an image-based capture.

Firefox for iOS

Mozilla documents a full-page screenshot workflow in Firefox for iOS: take a screenshot, select Full Page, tap Done, and choose Save as PDF. These instructions apply to Firefox on iOS and should not be assumed to describe other mobile browsers or platforms. Follow Mozilla’s Firefox for iOS PDF instructions.

Firefox extension option

The Full Page PDF Snap listing says its extension scrolls a page, captures it in sections, and assembles those sections into one PDF. The listing describes the result as a picture of the screen and also says it creates a text layer; those are claims from the extension listing, not independent test results. It names Firefox for Android availability. Check the current listing, compatibility, and requested permissions before installing it.

4. Choose the format that fits the job

What you need Better first choice What to check
A paginated document to read, search, or print Browser print-to-PDF Check coverage, text readability, page breaks, and whether the text is selectable.
The page to look close to its on-screen appearance Full-page screenshot or capture Check for seams between captured sections, missing lazy-loaded images, and legibility at PDF size.
A clean article without surrounding site clutter Try Firefox Simplified formatting or Edge Immersive Reader when available Availability varies by page; simplified layouts can remove backgrounds or other visual details.
A mobile PDF workflow Use instructions for your specific browser and platform Mozilla’s cited full-page screenshot steps are for Firefox on iOS. Extension support varies by platform.

If you need selectable, searchable text, test the saved file rather than assuming it has a text layer. If you need the screen layout as evidence or for visual reference, check that capture seams and scrolling changes did not alter important content. A PDF’s appearance alone does not establish when or how the webpage was captured.

5. Check the saved PDF

  1. Open the PDF and confirm the expected top, middle, and bottom sections are included.
  2. Search for a distinctive phrase or select a sentence to check whether the text is searchable and selectable.
  3. Zoom in on charts, small labels, and images. Confirm they remain legible.
  4. Review page breaks around headings, tables, and images.
  5. For a visual capture, look for gaps, overlaps, repeated strips, or missing content where sections join.
  6. If the file is too large to share, check whether your capture method offers a smaller image format or resize option; verify that compression does not make text unreadable.

6. Troubleshooting

Problem Likely cause What to try
The PDF stops before the end of the page Later sections had not loaded before printing, or the site only loads them as you scroll. Return to the page, scroll through the needed sections, wait for loading to finish, then reopen Print and inspect the preview.
The preview has blank areas or missing images Images or other page content had not finished loading, or print styling omits them. Wait for images to load and refresh if appropriate. Try ordinary print formatting instead of a simplified view, or use a full-page capture and inspect it.
The saved page looks different from the browser Websites can use print styles that change their screen appearance. Adjust print options and preview. If preserving the displayed layout matters more, try a supported full-page capture.
Text is too small or wide content is clipped The page is scaled to fit, or portrait paper is too narrow for its columns. Try landscape orientation, another paper size, or a different scale. Recheck the preview for readability.
A heading or image is split across pages Paginated print layout places a page break inside the content. Try different margins, scale, or paper size. If the page break remains unacceptable, consider a visual capture.
The PDF contains duplicate or joined sections A visual capture may have stitched scroll positions, or the page changed while capture was in progress. Capture again after the page settles; check for sticky headers or content that changes as you scroll. Compare against the live page.
The PDF is an image and text cannot be selected The capture method may have produced a visual image rather than a text-rendered document. Use browser print-to-PDF if selectable text matters. If an extension claims to add a text layer, verify search and selection in the resulting file.
A mobile instruction does not match your device Browser steps differ across operating systems and versions. Use the official instructions for your exact browser and platform. The Firefox full-page-to-PDF steps cited here are specifically for iOS.
A full-page extension is unavailable or requests unexpected permissions Compatibility or listing details may have changed, or the extension needs permissions to access pages. Check its current official listing, supported browser version, and permissions before installing; use built-in print-to-PDF if it fits your needs.

7. Performance, reliability, and file size

Long pages can take longer to load and capture because they may contain many sections, images, or embedded elements. Allow the page to settle before printing or capturing. During a visual capture, content that appears only after scrolling can be missed if the capture method does not trigger or wait for it. Sticky headers and other fixed elements may also recur in captures; inspect long outputs for repeated strips and seams.

For a more reliable result, save a fresh copy, verify the complete file, and keep the source URL with your notes. If the page is personalized, gated, or changes over time, record which version you meant to preserve. Browser print and screenshot methods capture what the browser can access; they do not guarantee a permanent or independently authenticated record.

PDF size depends on page length, image content, resolution, and whether the PDF contains rendered text or captured images. Choose readable scaling and resolution, then check the saved file before sharing. There is no universal page limit or completion time in the cited browser and extension sources.

Or skip the browser setup

For a webpage you can access by URL, ScreenshotNeo can return a PDF through one API request. It accepts the page URL and supports PDF options such as paper size, margins, landscape orientation, and page ranges. See the ScreenshotNeo API documentation for request options.

curl -G "https://api.screenshotneo.com/v1/shot" \
  -d access_key=YOUR_API_KEY \
  --data-urlencode url=https://stripe.com \
  -d format=pdf \
  -o page.pdf

Cookie and consent banners, newsletter popups, and chat widgets are removed before the shot; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. ScreenshotNeo also has an MCP server so AI agents can take screenshots. The free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. The same API can also return PNG, JPEG, or WebP if you need an image instead of a PDF.

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={
        "access_key": "YOUR_API_KEY",
        "url": "https://stripe.com",
        "format": "pdf",
    },
    timeout=90,
)
r.raise_for_status()
with open("page.pdf", "wb") as pdf:
    pdf.write(r.content)
const q = new URLSearchParams({
  access_key: 'YOUR_API_KEY',
  url: 'https://stripe.com',
  format: 'pdf',
});
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`Screenshot request failed: ${res.status}`);
await Bun.write('page.pdf', res);

Sign up for 1,000 free screenshots a month, with no card required.

FAQ

Will Print to PDF always include an infinite-scroll page’s entire contents?

No. Load the content you need before printing and verify the preview and saved PDF; sites and print styles differ.

Which method makes text searchable?

Browser print-to-PDF is a good first option when searchable text matters, but check the output. A visual capture may be image-based; do not assume it includes selectable text.

Can I save an infinite-scroll page as one long page?

That depends on the browser or capture tool. The Firefox extension cited above describes assembling sections into a PDF; inspect its current behavior and the file it creates.

Does a PDF prove what the page showed at a particular time?

A saved PDF is a copy of captured content, not by itself a verified record of the page’s state or capture time.

Sources