DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober 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 PC×
Skip to content
World desk7 min

Convert a Webpage to PDF with Puppeteer Without Installing Chrome System-Wide

Puppeteer can download its own compatible Chrome for Testing browser, so you can make PDFs without a system-wide Chrome installation. Here’s the setup, alternatives, and fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes. Install the regular puppeteer package and it normally downloads a compatible Chrome for Testing browser for its own use, so you do not need to install Chrome as a system application. The browser binary still exists on the machine or container. If you need it off that host, use puppeteer-core and connect to a remotely managed browser.

What “without a local Chrome install” means

Puppeteer needs a browser to render a page before it can produce a PDF. The simplest setup avoids a separate, system-wide Chrome installation, not browser files altogether: the full puppeteer package normally downloads a compatible Chrome for Testing build during installation and launches it from Puppeteer’s cache. The cache location and download size can vary by Puppeteer version and platform; the installation guide lists approximate downloads of 170 MB for macOS, 282 MB for Linux, and 280 MB for Windows, and says the default cache has been $HOME/.cache/puppeteer since Puppeteer v19.0.0. See the Puppeteer installation guide.

As an Amazon Associate I earn from qualifying purchases.

Chrome for Testing is intended for automation and testing, not regular browsing; Google explains why it is distributed separately on its Chrome for Testing page.

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

Choose how Puppeteer gets a browser

Approach Who obtains and runs the browser? Browser files on your app host? Best fit
puppeteer Puppeteer’s normal installation flow downloads a compatible browser and Puppeteer launches it. Yes, commonly in Puppeteer’s cache. Simplest local development, CI, or container setup when downloads and browser execution are allowed.
puppeteer-core with a managed executable You or the environment installs the browser and provides its path. Yes, managed outside Puppeteer’s default download flow. Environments that already manage or pin Chrome/Chromium.
puppeteer-core with a remote browser A remote service or environment runs the browser; your code connects to it. Not necessarily on the application host. Deployments that externalize browser execution. Endpoint, authentication, network rules, and cost depend on the provider.

The full package is the right default if “no local Chrome install” means no separate system application. Choose puppeteer-core when you will manage the executable yourself or connect to a remote browser. Unlike puppeteer, puppeteer-core does not download Chrome; Puppeteer configuration files and environment variables do not apply to it. See installation and configuration.

#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 Puppeteer and generate a PDF

  1. Use a supported Node.js runtime for the Puppeteer release you install. The current system requirements page lists Node 22.12 or later; verify the requirements for your exact release and deployment image at Puppeteer system requirements.

  2. In your project directory, install the full package:

    npm install puppeteer

    Its normal install process obtains a compatible Chrome for Testing build. If your project uses ES modules, save the following as pdf.mjs; otherwise configure the project for ES modules or adapt the import to your module system.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. Save and run this script:

    import puppeteer from 'puppeteer';
    
    const browser = await puppeteer.launch();
    try {
      const page = await browser.newPage();
      await page.goto('https://example.com', { waitUntil: 'networkidle2' });
      await page.pdf({ path: 'page.pdf', format: 'A4' });
    } finally {
      await browser.close();
    }
    node pdf.mjs

    The result is page.pdf in the current working directory. The launch call uses Puppeteer’s managed browser, so this script does not need a system Chrome path.

Choose the right readiness condition

networkidle2 is an example, not a guarantee that every page is fully rendered. A site may load content after the initial navigation, use lazy-loaded images, animate elements, or keep network connections active. For pages with a known readiness signal, wait for that page-specific condition—for example, a selector that appears when the content is ready—before calling page.pdf(). A fixed delay can help with a known delay but is not a reliable substitute for an application-specific signal.

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)

Understand print layout and colors

page.pdf() uses print CSS by default and returns a Promise<Uint8Array>. If you want the screen layout instead, call await page.emulateMediaType('screen') before generating the PDF. Printing can also alter colors; for color-sensitive output, the API documentation points to the CSS property -webkit-print-color-adjust. See the Page.pdf() API.

Control the browser download in CI and containers

When package install scripts are blocked

Some package managers or project policies prevent dependency install scripts from running, so Puppeteer may install without its browser. During image or build setup, run the official recovery command:

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

Alternatively, configure the package manager to allow Puppeteer’s postinstall script. Follow the instructions for your package manager and project policy in the installation guide.

When you need a specific browser build

You can use Puppeteer’s browser CLI to select a channel or build. For example:

npx @puppeteer/browsers install chrome@stable

You can also specify a browser build or version with the CLI. Pinning can make builds more reproducible, but align the browser version with the Puppeteer version: Puppeteer documents compatibility with specific browser versions. Consult the browser CLI documentation and installation guidance.

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

When Linux dependencies are missing

On Ubuntu or Debian, the browser may need system libraries in addition to the downloaded browser files. The Puppeteer CLI offers this command to attempt dependency installation:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
npx puppeteer browsers install chrome --install-deps

It requires root privileges. Check your target image and permissions before using it in a container build; a successful browser download alone does not prove that all runtime libraries are present. The system requirements list supported platforms and note that operating-system libraries and archive extraction utilities may be required.

Use an externally managed or remote browser

For a browser installed by your environment, use puppeteer-core and specify its executable path:

import puppeteer from 'puppeteer-core';

const browser = await puppeteer.launch({
  executablePath: '/path/to/managed/chrome',
});
try {
  const page = await browser.newPage();
  await page.goto('https://example.com', { waitUntil: 'networkidle2' });
  await page.pdf({ path: 'page.pdf', format: 'A4' });
} finally {
  await browser.close();
}

Replace the example path with the executable path provided by your operating system image or deployment environment. Do not assume that a path from another machine or container exists in this runtime.

If the browser must not be present on the application host, use puppeteer-core to connect to a remote browser endpoint instead of launching a local executable. The connection URL, credentials, and network configuration depend on the remote environment; confirm those details with its provider. Puppeteer’s installation documentation describes the distinction between the full and core packages at pptr.dev.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common PDF-generation failures

  • “Could not find Chrome (ver. …)”: Puppeteer cannot find the browser build it expects. If install scripts were blocked, run npx puppeteer browsers install in the build environment. If you deliberately use a managed browser, use puppeteer-core with the correct executablePath.

  • Browser downloads fail during installation: Check whether the build environment permits dependency install scripts and can reach the browser download. If scripts are intentionally disabled, download the browser explicitly during image or build setup.

  • Chrome starts locally but fails in the container: The image may lack required operating-system libraries or extraction utilities. Check Puppeteer’s requirements for the exact OS and architecture; on Ubuntu/Debian, the CLI dependency option requires root.

  • PDF omits content or images: The page may still be loading when capture begins. Replace a generic navigation wait with a readiness condition tied to the page’s content, and account for lazy-loaded elements or delayed requests.

    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.
  • PDF looks different from the browser window: PDF generation uses print media by default. Emulate screen media before printing if that is the intended appearance, and account for print-specific CSS and color adjustment.

    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
  • A remote connection fails: Check the endpoint, authentication, network access, and the remote browser’s availability with the service or environment operator. These settings are specific to the chosen deployment.

Or skip the browser setup

ScreenshotNeo provides a website screenshot API that can also return a PDF, so you can request a capture without managing Puppeteer and a browser binary in your application. One GET request is enough:

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

For this PDF request, set the API’s PDF output option as described in the ScreenshotNeo API documentation; the command above shows the request shape and target URL.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Cookie and consent banners are accepted like a visitor, and more than 60 known consent platforms, newsletter popups, and chat widgets can be removed before capture; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. The response identifies the page verdict and billing status in headers.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients.
  • The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.

Frequently Asked Questions

Does Puppeteer generate a PDF without any browser installed anywhere?

No. Puppeteer needs a browser to render the page. The full package can download Chrome for Testing automatically, or you can use a managed or remote browser.

Does puppeteer-core download Chrome for me?

No. Provide a managed browser executable or connect to a remote browser endpoint.

Can I use Puppeteer’s PDF output with screen CSS?

Yes. Call page.emulateMediaType('screen') before page.pdf().

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

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
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.