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

Install the Windows build of wkhtmltopdf, then run wkhtmltopdf https://example.com C:UsersyouDownloadspage.pdf in Command Prompt or PowerShell. Replace the URL and destination with your own. If either path contains spaces, enclose it in quotation marks.

Install wkhtmltopdf on Windows

  1. Open the official downloads page and choose a Windows installer or archive that matches your system. The page lists 32-bit and 64-bit installers for Vista or later, and 7z archives for XP/2003 or later. Confirm the download is still offered and suitable for your Windows environment before installing.
  2. Run the installer, or extract the archive to a folder you can access. The page lists version 0.12.6 as the stable series, released June 11, 2020; because that release information is old, check the official page for current availability rather than assuming it is the newest version today.
  3. Open Command Prompt or PowerShell and enter wkhtmltopdf --version. If Windows cannot find the command, run wkhtmltopdf.exe using its full file path or add the folder containing it to PATH. Installer behavior may vary.

Convert a webpage to PDF

Use this basic form in Command Prompt or PowerShell:

wkhtmltopdf https://example.com C:UsersyouDownloadspage.pdf

The first argument is the webpage URL; the second is where to save the PDF. For a destination path containing spaces, quote it:

wkhtmltopdf https://example.com "C:UsersyouDownloadsAnnual report.pdf"

When the command finishes, open the output PDF and check that the content and layout are usable. This is especially important for pages with complex layouts or interactive content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
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

Adjust page size, orientation, and margins

Once a basic conversion works, add options before the URL and output path. The usage manual documents page size, orientation, margins, grayscale output, image quality, and headers and footers. For example:

wkhtmltopdf --page-size Letter --orientation Landscape https://example.com C:Reportspage.pdf

This illustrates the option syntax; it has not been verified across every Windows release. The manual also supports header and footer placeholders including [page], [topage], [webpage], and [title]. Consult the usage manual for the option names and placement details before adding them to your command.

Rank #2
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

Or skip the browser setup

ScreenshotNeo is a website screenshot API that can also return a PDF. Its one-call GET request can capture a URL without installing wkhtmltopdf:

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

See the ScreenshotNeo API documentation for authentication and PDF options. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed; and its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000.

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

Sign up for ScreenshotNeo’s free plan.

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

Safety when converting HTML

The project warns: “Do not use wkhtmltopdf with any untrusted HTML – be sure to sanitize any user-supplied HTML/JS, otherwise it can lead to complete takeover of the server it is running on!” Take particular care if you automate conversions or process content supplied by other people. wkhtmltopdf is an open-source command-line HTML-to-PDF tool that uses the Qt WebKit rendering engine, runs headlessly, and is identified by the project as LGPLv3.

Quick Recap

Bestseller No. 1
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
Best Value
Sale
ScanSnap iX1300 Wireless or USB Double-Sided Color Document Scanner, Black
  • FITS SMALL SPACES AND STAYS OUT OF THE WAY. Innovative space-saving design to free up desk space, even when it's being used
  • SCAN DOCUMENTS, PHOTOS, CARDS, AND MORE. Handles most document types, including thick items and plastic cards. Exclusive QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
  • GREAT IMAGES EVERY TIME, NO EXPERIENCE REQUIRED. A single touch starts fast, up to 30ppm duplex scanning with automatic de-skew, color optimization, and blank page removal for outstanding results without driver setup
  • SCAN WHERE YOU WANT, WHEN YOU WANT. Connect with USB or Wi-Fi. Send to Mac, PC, mobile devices, and cloud services. Scan to Chromebook using the mobile app. Can be used without a computer
  • PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. ScanSnap Home all-in-one software brings together all your favorite functions. Easily manage, edit, and use scanned data from documents, receipts, business cards, photos, and more
Rank #4
Sale
Epson Workforce ES-400 II High-Speed Color Duplex Desktop Document Scanner
  • FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
  • INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
  • SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
  • EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
  • SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning
Rank #3
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)

Troubleshooting

  • “wkhtmltopdf is not recognized” or command not found: Use the full path to wkhtmltopdf.exe, or add its containing folder to PATH, then reopen the terminal and retry.
  • The output path is rejected: Check that the destination folder exists and that you have permission to write there. Put quotation marks around paths containing spaces.
  • No usable PDF appears: Confirm the URL is reachable from the computer running the command, check the terminal output for errors, and verify the destination path. Open any generated file to inspect its content and layout.
  • A modern or interactive page renders incorrectly: The available project information does not establish reliable rendering for current JavaScript-heavy sites or current Windows versions. The project uses Qt WebKit; results may not match a modern browser. Verify the specific page output rather than assuming it will render faithfully.

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.