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

wkhtmltopdf creates PDF files, not single-image screenshots. To capture a webpage as a raster image or SVG, use its companion command, wkhtmltoimage. One important caveat: the official image settings document viewport width, smart-width behavior, and cropping, but do not promise that every build will automatically capture the full height of any webpage. Check the output from your installed binary and target page before relying on it as a full-page image.

Choose the output you actually need

The first decision is whether you need one tall image or a PDF document. They are different outputs, even when both show a webpage from top to bottom.

Need Use What to expect
One raster image, such as PNG or JPEG, or an SVG wkhtmltoimage The companion utility converts HTML into an image format. Its image settings expose output format and quality options. Full-document height is not guaranteed by the cited settings reference.
A conventional PDF wkhtmltopdf A PDF can span pages. The PDF settings include page size, orientation, margins, and custom page width and height.
A tall, custom-dimension PDF wkhtmltopdf with PDF page settings This remains a PDF, not a single screenshot image. Choose dimensions deliberately and inspect the result in a PDF viewer.

The wkhtmltopdf project overview describes the tools as rendering HTML into PDF and image formats using Qt WebKit. Its library documentation describes the image binding as conversion to raster image or SVG. Do not use the command name as a reason to expect wkhtmltopdf to write PNG or JPEG output.

Capture a page with wkhtmltoimage

For a basic capture, give wkhtmltoimage a page URL and an output filename with an image extension. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Epson EcoTank ET-2800 Wireless Color All-in-One Supertank Printer - Black
  • INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
  • COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
  • ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
  • HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
wkhtmltoimage https://example.com example.png

Run this in a terminal where the wkhtmltoimage executable is installed and available on your PATH. Use a URL your machine can reach; a private page may also require authentication that the basic command does not provide. The example requests an image, but it does not prove that the output includes the entire document height. Open the resulting file and check its width, bottom edge, and content.

Set the rendering width deliberately

The image settings reference documents screenWidth, which sets the rendering screen width, and smartWidth, which controls whether that width expands when the content does not fit. These settings affect the layout: a page rendered at a narrow width may wrap text or rearrange responsive elements, while a wider layout may require a larger image. Decide what the screenshot should represent—such as a phone-sized view or a desktop layout—and verify that the output uses the intended width.

Image settings also include crop coordinates and dimensions. Cropping selects a region; it is not a command to discover and capture the full document height. If a precise full-page result matters, compare the produced image with the page in a browser and test the installed build on the actual site. The official settings reference does not state a universal automatic full-height guarantee.

Allow time for JavaScript content

For pages that add content shortly after loading, the documented load.jsdelay setting provides a delay in milliseconds before capture. The reference says the tool waits for that period after page load, or until JavaScript calls window.print(). A delay can help with content that appears soon after initial load, but it is only a timing allowance. It cannot establish that every script has finished, every lazy-loaded image has appeared, or an infinite-scroll page is complete.

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.
Rank #2
Sale
Epson EcoTank Photo ET-8550 Wireless Wide-Format All-in-One Tank Printer
  • CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
  • INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
  • PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
  • ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴

When content is missing, try a longer delay and capture again, then compare the result. If the page needs interaction, authentication, or scrolling to reveal content, a fixed wait may not be enough. The cited settings establish the delay behavior, not a general mechanism that guarantees all dynamic content is ready.

Use wkhtmltopdf when the deliverable is a PDF

If a PDF is what you need, use the PDF utility directly:

wkhtmltopdf https://example.com page.pdf

PDF settings provide controls for page size, orientation, margins, image quality, DPI, and custom page width and height. A custom page size can make a long page less fragmented, but the output is still a PDF document; it is not equivalent to a single image file. For an unusually tall page, choose dimensions that suit the intended viewer and inspect the PDF for clipping, unreadable scaling, or awkward page breaks.

PDF pagination and image capture solve different problems. A PDF is usually more suitable when readers need to print, select text, or move between pages. A raster image is useful when an application specifically needs one image asset. Pick based on how the result will be used rather than trying to treat one format as a substitute for the other.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HP Smart Tank 5000 Ink Tank Printer | 2 Years of Ink Included | All-in-One
  • SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
  • INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
  • KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
  • PREMIUM SUPPORT - Strong technical expertise to solve issues faster
  • THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. A single GET request can return a PNG, JPEG, WebP, or PDF. For example, this cURL request saves a WebP capture:

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 parameters and response details. The equivalent Python request is:

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
    timeout=90,
)
open("shot.webp", "wb").write(r.content)

And in Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, 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 Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 screenshots. Sign up for free: get 1,000 screenshots a month with no card.

Check version and treat input safely

The project downloads page lists 0.12.6 as the stable series and dates that release June 11, 2020. That is a dated release listing, not a promise about what is installed on your machine or whether it suits your current operating system. Check the official downloads page for the binary and platform information relevant to your environment, and verify the installed version before depending on particular behavior.

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

The project also gives a direct security warning: “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 on which it is running!” Treat this as a serious warning from the project. Do not pass user-controlled HTML or JavaScript to the tool on a server without an appropriate security review and sanitization. A URL-based capture does not make untrusted page content safe; assess the pages and execution environment you allow the process to access.

Rank #4
Sale
NDYIN Portable Printers Wireless for Travel, N80 Bluetooth Thermal Printer
  • Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
  • No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
  • Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
  • Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
  • The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot missing or incorrect captures

  • The command is not found: The executable is not installed or is not on the current shell’s PATH. Install the appropriate build from the official downloads page or invoke it using its installed path.
  • You get a PDF when you wanted an image: Use the companion wkhtmltoimage command and an image filename. wkhtmltopdf is the PDF utility.
  • The screenshot is too narrow or the page wraps unexpectedly: Review the rendering screen width and smart-width behavior documented for the image interface. Change the width for the layout you need and inspect the result rather than assuming the page will match a browser viewport.
  • The bottom of the page is missing: Do not assume the image tool automatically captures all document height. The official settings reference does not establish that guarantee. Check the installed binary’s behavior and the actual target page; crop settings alone select a region rather than prove full-page capture.
  • Text, images, or widgets are absent: If the content appears after initial load, the documented JavaScript delay may help. Increase the wait and compare captures. If content requires interaction or further scrolling, a delay alone may not trigger it.
  • The PDF is split or scaled awkwardly: Check page size, orientation, margins, and custom dimensions. These are PDF settings, and changing them changes page layout rather than converting the document into a single image.
  • Results differ by machine: Confirm the installed release and platform build. The project lists 0.12.6 as its stable series with a June 11, 2020 release date; the documentation does not establish identical behavior across every environment.

Plan for quality, timing, and reliability

Width, image format, and quality settings affect whether the output is useful for its purpose. A larger rendering width can preserve a desktop layout but produce a larger image; a smaller width changes responsive layout. Select an output format and quality appropriate to the destination, then check legibility at the size at which the image will actually be viewed. The official image settings reference exposes format and quality controls but does not supply a universal best value.

For repeated captures, use a consistent width and wait policy, and validate representative pages rather than treating a successful command exit as proof that the screenshot is complete. Dynamic sites may change after load, and the documented delay is not a guarantee of completeness. On servers, account for processing time and resource use in your own environment; the supplied project references do not establish a performance benchmark or a fixed capture time.

Finally, keep output type and security separate in your workflow: choose wkhtmltoimage for a single image, choose wkhtmltopdf for a PDF, and do not feed untrusted HTML/JavaScript into the project tools without sanitizing it as the project warns.

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

Quick Recap

Bestseller No. 3
HP Smart Tank 5000 Ink Tank Printer | 2 Years of Ink Included | All-in-One
HP Smart Tank 5000 Ink Tank Printer | 2 Years of Ink Included | All-in-One
PREMIUM SUPPORT - Strong technical expertise to solve issues faster; THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
$189.99

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.