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 desk4 min

How to Make a PDF from a Webpage Using Firefox Headless

Firefox headless runs without a GUI, but its documented screenshot option creates an image—not a PDF. Here’s the Firefox print-to-PDF workflow and its key settings.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Firefox’s --headless option runs the browser without a graphical interface, but Mozilla’s current command-line reference does not document a command-line option for printing a webpage to PDF. Firefox documents a headless screenshot option, which saves an image rather than a paginated PDF. For a PDF using Firefox’s documented workflow, open the page in Firefox, choose Print…, select Save to PDF, adjust the print settings, and save.

Can Firefox headless save a webpage as PDF directly?

Not through a PDF-printing option documented in Mozilla’s current command-line reference. That reference defines --headless as running Firefox without a GUI and separately documents --screenshot [path] for saving a screenshot. The screenshot option implies headless mode, but its output is an image, not a PDF. See Mozilla’s command-line reference.

As an Amazon Associate I earn from qualifying purchases.

This is a statement about the documented Firefox command-line interface, not a claim that no external automation or later browser build could produce PDFs. Mozilla notes that available parameters can depend on build and platform; run firefox --help to see what your installation accepts.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Save a webpage as PDF in Firefox

  1. Open the webpage in Firefox.
  2. Open the browser menu and choose Print….
  3. In print preview, select Save to PDF from the destination dropdown.
  4. Set the page range and layout options you need, then click Print and choose where to save the file.

This workflow uses Firefox’s print preview, not headless mode. Mozilla’s instructions are in How to print web pages in Firefox.

#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

Settings that affect the PDF

  • Orientation, paper size, scale, and margins: adjust these to control fit and whitespace.
  • Pages: print all pages or specify a page range.
  • Pages per sheet: fit multiple document pages onto each printed sheet.
  • Headers and footers: include or omit page details.
  • Backgrounds: choose whether to print background colors and images. Background printing is unavailable when simplified format is selected.

Check the preview before saving: a site can use different styling for print than for the screen, so content and layout may change.

Use simplified formatting when available

Firefox’s Simplified print format can remove clutter such as buttons, advertisements, and background images. Its availability depends on whether the page has a simplified version; the setting is also unavailable if Reader View is already enabled. If the page offers Reader View, you can enable it before printing. See Print a simplified, cleaner version of webpages.

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)

When Firefox’s screenshot option is enough

If you need an image rather than a document with printable pages, Firefox documents --screenshot [path]. Mozilla says this option implies headless mode. It is not a substitute for PDF export when you need page ranges, paper size, margins, or a paginated document. Check the command-line reference and your local firefox --help output for the syntax available in your build and platform.

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

Or skip the browser setup

If you need a webpage screenshot rather than a print-layout PDF, ScreenshotNeo is a website screenshot API and MCP server for developers. Its one-call request returns a PNG, JPEG, WebP, or PDF; the API’s PDF output is an alternative when a headless browser setup is not what you want.

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

For example, this cURL request captures a page as WebP:

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

See the ScreenshotNeo documentation for the API options and PDF configuration. Cookie and consent banners are accepted and removed before capture, along with supported newsletter popups and chat widgets; these cleanup steps can be disabled individually. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. An MCP server exposes 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.

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

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

Troubleshooting

“Unknown option” or no PDF output from a command

Do not assume --headless means PDF export: it only indicates that Firefox runs without a GUI. Consult Mozilla’s command-line reference and run firefox --help for options supported by your local build.

The screenshot is an image, not a PDF

--screenshot is documented for screenshot output. Use Firefox’s print preview and Save to PDF for a PDF through the documented Firefox workflow.

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 saved PDF looks different from the webpage

Webpages can use print-specific styles. Review print preview and adjust scale, orientation, paper size, margins, and background printing. Try simplified format if the page offers it and the setting is available.

Why the PDF-printing CLI question comes up

Mozilla Bugzilla issue 1407238 is titled “Cli argument for print page or generate pdf command in Firefox headless mode.” It provides historical context for a request, not proof of feature availability or status in every later Firefox build.

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

Frequently Asked Questions

Does Firefox’s `–headless` option itself export a PDF?

No. It runs Firefox without a GUI; Mozilla’s current command-line reference documents screenshots separately and does not list a PDF-printing option.

Can I use Firefox’s `–screenshot` option to make a paginated PDF?

No. It saves a screenshot image. Use the print preview’s Save to PDF destination for a PDF.

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 *

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.

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.