October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Save a Website as a PDF with Chrome DevTools

DevTools previews a site’s print layout; Chrome’s print/export flow or Headless --print-to-pdf creates the PDF.

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.

Chrome DevTools can preview a website’s print layout, but its Emulate CSS media type: print setting does not save a PDF. Use DevTools to inspect or adjust print styling, then use Chrome’s print/export flow to create a PDF. For command-line PDF generation, Chrome Headless documents the --print-to-pdf flag.

What DevTools does—and what it does not do

DevTools’ print-media emulation switches the page into its print CSS state. That is useful for checking what will be hidden, moved, or restyled on paper and for debugging the page’s print rules. Emulation is a preview, not a PDF export: to create a file, run a print/export action separately.

As an Amazon Associate I earn from qualifying purchases.

Preview a website’s print layout in DevTools

  1. Open the website in Chrome, then open DevTools.
  2. Open the Command Menu with Command+Shift+P on Mac, or Control+Shift+P on Windows, Linux, or ChromeOS.
  3. Type Show Rendering and open the Rendering panel.
  4. Under Emulate CSS media type, select print.
  5. Inspect the page and, if you are developing it, edit the relevant print CSS. When you are ready to create a PDF, use Chrome’s print/export flow; the emulation setting itself does not produce a file.

Print styles may change or remove navigation, backgrounds, and other screen-oriented elements. If the page looks wrong in the preview, inspect its print CSS before exporting. For a site you do not control, the preview can help reveal how its print styling behaves, but it does not give you a way to persistently edit that site’s code.

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

Save a PDF from Chrome’s print/export flow

After checking the print appearance, start Chrome’s print/export action and use the available PDF destination or export option to save a file. Exact dialog labels and availability can vary by platform and Chrome version. If you only need a PDF once, this browser workflow avoids setting up automation; DevTools is optional unless you need to inspect or debug print styling.

#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

Create a PDF from the command line with Chrome Headless

For automated URL-to-file output, Chrome’s Headless documentation gives this example:

chrome --headless --print-to-pdf https://developer.chrome.com/

Chrome writes output.pdf to the current working directory. Run the command from the directory where you want that file. This is a command-line route to PDF generation; it is distinct from DevTools’ interactive print-media preview.

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)

Control headers, footers, and page timing

  • --no-pdf-header-footer omits Chrome’s print header and footer, including the date and time, URL, and page number. The Headless reference notes that the earlier flag name was --print-to-pdf-no-header; an older Chrome version may require that name.
  • --timeout caps how long Headless waits before capture. It can be useful when a page is slow, but a timeout that is too short may produce a PDF before content finishes loading.
  • --virtual-time-budget advances page timers before capture. This can help with time-dependent content, but check the resulting PDF to confirm the page had enough time to render what you need.

These flags address different issues: the header/footer option changes printed furniture, while the timing options affect when Headless captures the page. They do not guarantee that every site’s dynamic content will render correctly.

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

Use print CSS for page size, margins, and page furniture

When you control the website, CSS print rules define how it responds to printing. DevTools’ print emulation lets you inspect that response before making a PDF. The @page rule can set page size and margins. From Chrome 131, CSS can also generate content in page margin boxes, which can be used for items such as page counters. Chrome’s browser-generated headers and footers are separate from CSS margin-box content and can be disabled in the print dialog when that option is available.

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

If you are diagnosing an unexpected header or footer, check whether it comes from the browser’s print controls or from the page’s CSS; the fixes are different. Margin-box support and output can depend on the Chrome version, so verify the PDF produced by the version you will actually use.

Choose the right route

Need Use What it gives you
Inspect or debug how a page responds to print CSS DevTools Rendering panel, Emulate CSS media type: print A print-media preview; not a saved PDF by itself.
Save a PDF interactively Chrome’s print/export flow A PDF using the available browser and platform print options.
Generate PDFs in a command-line workflow Chrome Headless with --print-to-pdf A PDF file written to the working directory, with documented options for headers/footers and timing.

Troubleshooting

The Rendering panel or setting is hard to find

Open the Command Menu and search for Show Rendering. In the Rendering panel, check that Emulate CSS media type is set to print; merely opening DevTools does not activate print emulation.

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

No PDF file appears after enabling print emulation

That is expected: emulation previews print styling, it does not export a file. Start a separate print/export action, or use the documented Headless command when you need command-line output.

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

The PDF is missing content or shows an incomplete page

Pages that load content asynchronously or depend on timers may need more time before capture. For Headless, review the documented --timeout and --virtual-time-budget options, then inspect the output. Neither option guarantees that a site’s scripts or external resources will succeed.

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 output includes a date, URL, or page number

Those can be browser-generated print headers or footers. In Headless, use --no-pdf-header-footer; an older Chrome version may use --print-to-pdf-no-header. For interactive printing, look for the print-dialog option to disable headers and footers.

The browser and CSS both seem to add page headers or footers

Check the print dialog setting and the site’s @page rules separately. Disabling browser-generated headers and footers does not remove content the page generates through CSS.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need a clean visual capture rather than a print-CSS preview, ScreenshotNeo provides a website screenshot API and MCP server. Its API can return screenshots or PDFs; the example below requests a WebP screenshot, not a PDF:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://developer.chrome.com/ -o shot.webp

See the ScreenshotNeo API documentation for PDF options and other parameters. ScreenshotNeo removes supported cookie/consent banners, newsletter popups, and chat widgets before capture, and each step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; response headers report the page verdict and billing status. Its MCP server includes screenshot and PDF tools for AI agents. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. These are API captures, not a replacement for inspecting or adjusting a site’s print CSS.

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

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.