To archive a webpage in both formats, open it in a headless browser, wait for the content you need, then save a screenshot and a PDF. Chrome Headless is a direct command-line option; Playwright or Puppeteer is better suited to a repeatable job that needs loops, filenames, or page-specific controls. A screenshot records a visual rendering, while a PDF follows browser print behavior unless you change the media setting.
Choose a capture method
| Method | Useful for | What to account for |
|---|---|---|
| Chrome Headless CLI | A straightforward URL-to-file command. | The documented flags capture files, but do not provide a complete batch-management workflow. Chrome’s timeout is a maximum wait, not proof the page finished loading. Chrome Headless command-line reference |
| Playwright | Automated runs that need viewport, element, or full-page screenshots, or CLI PDF export. | You still need to choose a page readiness condition and a file-naming convention. Playwright screenshots and PDF |
| Puppeteer | Programmable Chromium capture and PDF styling. | PDFs use print CSS by default; choose screen media first if you need screen styling. Puppeteer Page.pdf() |
There are no comparative performance benchmarks established here, so choose based on workflow and page behavior rather than assuming one option is faster.
As an Amazon Associate I earn from qualifying purchases.
Capture both files with Chrome Headless
For a one-off capture, run Chrome’s headless binary from a terminal. Replace the URL and output paths as needed:
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →chrome --headless --screenshot=page.png --timeout=10000 "https://example.com"
chrome --headless --print-to-pdf=page.pdf --timeout=10000 "https://example.com"
On systems where the executable is named google-chrome, chromium, or has another path, use that installed binary name. Chrome for Developers documents --print-to-pdf as saving the target page to a PDF in the current working directory; the explicit output path above names the file page.pdf. See the Chrome Headless command-line reference for the flags and platform details.
#1 Best Overall
- 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
The two commands launch separate captures. A page can change between them; if identical page state matters, use a browser automation script to navigate once and save both outputs in the same run. The timeout only caps the wait: Chrome can capture while the page is still loading. Do not treat it as confirmation that scripts, images, or embedded content have settled.
Automate paired captures with Playwright
Install Playwright and its Chromium browser in a Node.js project:
Rank #2
- 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)
npm install playwright
npx playwright install chromium
Save this as archive.mjs. It navigates once, waits for network activity to settle, then writes a full-page screenshot and PDF using the same browser page:
import { chromium } from 'playwright';
const url = process.argv[2];
if (!url) throw new Error('Usage: node archive.mjs https://example.com');
const browser = await chromium.launch({ headless: true });
try {
const page = await browser.newPage();
await page.goto(url, { waitUntil: 'networkidle', timeout: 60000 });
await page.screenshot({ path: 'page.png', fullPage: true });
await page.pdf({ path: 'page.pdf', printBackground: true });
} finally {
await browser.close();
}
Run it with node archive.mjs https://example.com. The screenshot includes the full scrollable page, rather than only the initial viewport. Playwright’s screenshot API also supports capturing a particular element; use that when the archive should contain a specific region rather than the whole page. See Playwright Page and Playwright screenshots and PDF.
Rank #3
- 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
networkidle is a practical general wait condition, not a guarantee that every site has finished its own delayed work. If a page loads important content after a user action or a known event, adapt the script to wait for that page-specific condition before saving. For example, Playwright supports waiting for a selector; avoid using a fixed delay as a substitute for identifying the content you need.
Control PDF appearance and screenshot extent
Screenshot: viewport, full page, or element
A default screenshot captures the current viewport. Use Playwright’s fullPage: true option when the complete scrollable page matters. For a focused record, select the relevant element and capture that element instead. Full-page capture can produce a very tall image, so use it when the page’s full layout is useful rather than simply because the option exists.
Rank #4
- 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
PDF: print styling or screen styling
Puppeteer documents that page.pdf() uses print CSS by default. Print styles can hide navigation or alter colors and layout, which may be appropriate for a document but differ from what a visitor sees onscreen. If screen media is the goal, emulate it before PDF generation:
await page.emulateMediaType('screen');
await page.pdf({ path: 'page.pdf', printBackground: true });
This Puppeteer API example applies to a page controlled by Puppeteer; in the Playwright script above, use Playwright’s corresponding page media emulation before calling page.pdf(). Always open the resulting PDF and inspect page breaks, colors, and content that may be interactive or omitted by print styling. Reference: Puppeteer Page.pdf().
Best Value
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
Make the archive usable later
Use consistent filenames so the screenshot and PDF stay paired. A practical convention is a capture date, a sanitized page title, and an extension, such as 2026-10-04-example-com.png and 2026-10-04-example-com.pdf. Record the source URL and capture time alongside the files; that is an editorial workflow recommendation, not an archival standard established by the browser documentation.
These files preserve a visual rendering and a print-oriented document, not every underlying website resource or behavior. If you retain many captures, store and back up both files together with their provenance details.
Troubleshooting
- The page looks incomplete: The capture may have happened before client-side content finished loading. A timeout is only a maximum wait, and a network-idle condition is not proof every delayed widget has appeared. Wait for the specific content or selector needed before capture.
- The screenshot shows only the top of the page: The default target is the viewport. Set full-page capture explicitly, or capture the specific element required.
- The PDF looks unlike the browser page: PDF generation applies print CSS by default in Puppeteer. Emulate screen media before generating a screen-style PDF, and inspect the output for pagination and color differences.
- Background colors are missing in the PDF: Set
printBackground: truein the page PDF options. - The CLI command cannot find Chrome: Use the executable name or full path installed on your system. For Playwright, install the browser binary with
npx playwright install chromium. - A command times out or captures a page still loading: Increase the maximum wait if appropriate, but also add a meaningful readiness condition in an automation library when the page needs more than a fixed wait.
Or skip the browser setup
ScreenshotNeo offers a screenshot API and MCP server for developers. A single GET request captures a URL as an image; ScreenshotNeo also supports PDF output. For example, this cURL request saves a WebP screenshot:
Quick Recap
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo docs for PDF output and request options. ScreenshotNeo’s clean-shot steps can accept cookie or consent banners and remove known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. See ScreenshotNeo or sign up free to start with 1,000 screenshots a month and no card.
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.




