Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk6 min

How to Export Bulk Website Screenshots to PDF

Use Playwright to capture a URL list as full-page images or per-page PDFs, then assemble image captures into one PDF when needed.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To export screenshots of many websites as one PDF, automate a full-page screenshot for each URL, save the images in a deliberate order, then assemble them into a PDF. If you want a print-style PDF of each webpage instead, generate a PDF for each page; browser PDF output is not the same as a screenshot. The examples below use Playwright and show both capture choices.

Choose what the PDF should contain

What you need Start with Decide before capturing
A visual record that preserves the page layout, charts, and colors Full-page screenshots, then combine the images into a PDF Full page or viewport, image format, resolution, and file order
A document laid out for paper Browser-generated PDFs Print or screen styling, paper size, margins, scale, and backgrounds
One PDF containing captures of many URLs Capture images and assemble them with a PDF-capable tool Whether each URL starts a new page, image sizing, and ordering

Playwright provides screenshot and PDF capture separately; neither its screenshot API nor its documented CLI command is a built-in arbitrary URL-list-to-combined-PDF workflow. The URL loop and image assembly below are steps you add around those capture primitives. See the Playwright screenshot documentation, Page API reference, and CLI screenshot and PDF documentation.

As an Amazon Associate I earn from qualifying purchases.

Prepare a URL list and output plan

Put one URL per line in a text file named urls.txt. Remove blank lines and confirm that the URLs include their schemes, such as https://. Choose a filename convention and output type before the run. The script below numbers outputs in input order, which keeps the sequence predictable even when page titles are alike.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For screenshots, use full-page capture when you want the scrollable page surface. For a print-rendered PDF, choose page size and margins and decide whether print CSS is appropriate. Playwright PDF generation uses print CSS media by default. To produce PDF output styled like the screen, explicitly emulate screen media before calling page.pdf().

#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0

Install Playwright

  1. Install a current Node.js release if it is not already available.
  2. In a new project directory, run npm init -y.
  3. Install Playwright with npm install playwright.
  4. Install its browser with npx playwright install chromium.

Capture a batch of full-page screenshots

Save the following as capture.mjs beside urls.txt. It visits each URL sequentially and writes a PNG for each page to screenshots/. Sequential capture is deliberate: it is simpler to troubleshoot and avoids opening an unbounded number of browser pages at once.

import { chromium } from 'playwright';
import { mkdir, readFile } from 'node:fs/promises';

const urls = (await readFile('urls.txt', 'utf8'))
  .split(/r?n/)
  .map((line) => line.trim())
  .filter(Boolean);

if (urls.length === 0) throw new Error('urls.txt contains no URLs');

await mkdir('screenshots', { recursive: true });
const browser = await chromium.launch({ headless: true });
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });

try {
  for (let i = 0; i < urls.length; i++) {
    const url = urls[i];
    const filename = `screenshots/${String(i + 1).padStart(4, '0')}.png`;
    console.log(`Capturing ${url} -> ${filename}`);
    await page.goto(url, { waitUntil: 'networkidle', timeout: 60000 });
    await page.screenshot({ path: filename, fullPage: true });
  }
} finally {
  await browser.close();
}

Run it with node capture.mjs. The fullPage: true option captures the full scrollable page rather than only the visible viewport. The fixed viewport makes layout more consistent between pages, but responsive design means it will not show every device layout. To capture only the initial viewport, remove fullPage: true.

Rank #2
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)

Adjust waiting for slow or dynamic pages

The example waits for networkidle, which can be unsuitable for pages that maintain background network connections or load content continuously. If navigation times out, try waitUntil: 'load' or waitUntil: 'domcontentloaded', then add a site-appropriate wait for the content you need. For example, after navigation you can wait for a known selector with await page.locator('main').waitFor(). No single wait condition guarantees that every site’s images, animations, or lazy-loaded sections have finished.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make a PDF for each webpage instead

If the requested deliverable is a print-style PDF per URL, replace the screenshot call in the loop with PDF generation. Give the PDF options you need explicitly so the result is repeatable:

Rank #3
Sale
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
  • STAY ORGANIZED – Easily convert your paper documents into digital formats like searchable PDF files, JPEGs, and more.Power Consumption : 2.5W or less (Energy Saving Mode: 0.7W). Suggested Daily Volume : 500 scans..Does it contain liquid: no
  • CONVENIENT AND PORTABLE –lightweight and small in size, you can take the scanner anywhere from home offices, classrooms, remote offices, and anywhere in between
  • HANDLES VARIOUS MEDIA TYPES – Digitize receipts, business cards, plastic or embossed cards, reports, legal documents, and more
  • FAST AND EFFICIENT – No technical hurdles or complicated setups here; easily scan both sides of a document at the same time, in color or black-and-white, at up to 12 pages-per-minute, and with a 20 sheet automatic feeder
  • BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer
await page.pdf({
  path: `pdfs/${String(i + 1).padStart(4, '0')}.pdf`,
  format: 'A4',
  printBackground: true,
  margin: { top: '12mm', right: '12mm', bottom: '12mm', left: '12mm' }
});

Create the output directory with await mkdir('pdfs', { recursive: true }) before the loop. Playwright’s PDF options also support paper size, page ranges, scaling, margins, and background printing. To use screen styling rather than the default print CSS, call await page.emulateMedia({ media: 'screen' }) before page.pdf(). A PDF may paginate or omit elements according to the page’s print styles, so inspect the output rather than assuming it matches a screenshot.

Combine screenshot images into one PDF

The capture script creates image files, not a combined PDF. To make a single document, pass the images to a PDF-capable tool and preserve their numbered order. Choose whether each image should occupy its own PDF page, and whether images should fit, fill, or retain their natural dimensions. Those choices affect cropping and whitespace; verify representative long and short pages before assembling the complete batch.

Rank #4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
  • IRIScan Express, portable scanner : scans color and black and white documents a blazing speed up to 8ppm simplex. Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • IRIScan Express mobile scanner is powered via an included micro USB 2. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan. USB cable provided. AC Adapter not provided and not needed.
  • IRIScan flatbed scanner uses a simplex scanning mode allows for quick and straightforward scanning of single-sided documents. IRIScan with its full portable features is the ideal document scanners for computers.
  • IRIScan document scanner : Versatile scanning capabilities, including scanning to Word, PDF, and Excel formats with companion software provided Readiris OCR
  • Receipt scanner and card scanner with Additional features include scanning business cards directly to Outlook, photo scanning, and receipt scanning for efficient document management

Review output before scaling up

  • Open captures from the beginning, middle, and end of the list and confirm the numbering matches the intended order.
  • Check long pages, image loading, overlays, cookie notices, and content that appears only after interaction.
  • Check whether a page requires sign-in or site-specific steps; the general script does not handle authentication or interactive flows.
  • Inspect full-page images for cut-off content and print PDFs for unexpected page breaks, missing backgrounds, or print-specific styling.
  • Keep the source URL list with the output so that a failed or changed page can be identified and retried.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

Navigation times out

Some pages never become network-idle, while others load slowly. Try a less strict navigation condition such as load or domcontentloaded, increase the timeout for genuinely slow pages, and wait for the specific content selector you need. A timeout can still indicate an unavailable page, so check the URL in a browser.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Images or lower-page content are missing

Lazy-loaded content may not appear until it is scrolled into view. Full-page capture requests the whole page surface, but it does not guarantee every site’s lazy-loading logic has run. Review the output and add site-specific scrolling or waits when required.

Best Value
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images

The PDF looks different from the screenshot

PDF generation follows print CSS by default and paginates content. Use screen-media emulation before PDF generation only when screen styling is the intended result. If preserving the rendered appearance is more important than a paginated document, capture screenshots and assemble those images into a PDF.

A page shows a consent banner, popup, or chat widget

The local Playwright example does not automatically remove third-party overlays. Review the site and add permitted site-specific interaction or CSS handling if appropriate; do not assume a universal script can safely dismiss every banner or popup.

The run stops or produces a partial batch

Because filenames are based on input order, completed outputs remain identifiable. Check the last logged URL, resolve its navigation or access issue, and rerun after deciding whether to overwrite existing files or change the numbering scheme.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When a hosted capture API may be easier

If you run captures regularly or at higher volume, compare hosted screenshot APIs and verify that the service supports your actual input list, desired PDF output, batching, and current limits. ScreenshotNeo is a website screenshot API and MCP server; it is a practical first alternative when clean captures matter because it removes known consent banners, newsletter popups, and chat widgets before capture, and failed or unbillable outcomes are identified in response headers. Its PDF output is a capture choice, not a claim that a batch of URLs is automatically assembled into one combined PDF.

Or skip the browser setup

ScreenshotNeo takes a URL in one GET request and can return PNG, JPEG, WebP, or PDF. See the ScreenshotNeo website and API documentation for request options. This example saves one PDF response; for a batch, repeat the request for each URL and then combine outputs if the goal is one PDF containing multiple captures.

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

To request a PDF, use the documented PDF output option in the API request; consult the docs for its exact parameter. Cookie banners, popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed, and the response identifies the page verdict and billing status. An MCP server lets AI agents use screenshot tools. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does a full-page screenshot automatically become a PDF?

No. It produces an image file; create a PDF separately if that is the required deliverable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can one command in Playwright process an arbitrary URL list into one PDF?

The documented screenshot and PDF capture primitives are separate; a URL loop and document assembly are additional workflow steps.

Quick Recap

SaleBestseller No. 3
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer; This product is not intended for scanning photographs on photo paper / photographic media
$153.00
Bestseller No. 4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
Find our Software here : irislink.com/start; IRIScan Express is only compatible Windows platform and not macintosh
$129.00
Bestseller No. 5
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.