What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The simplest free method is to render your HTML in Chrome or Firefox, open the print dialog, and choose the browser’s PDF destination. For repeatable conversions, save the markup as an .html file and use wkhtmltopdf from the command line. The right path depends on whether you have an open webpage, a saved file, or only a raw code snippet.
Choose the right starting point
- Open webpage: print the rendered page directly from your browser.
- Saved HTML file: open the file in Chrome or Firefox, then print it.
- Raw HTML code: save the snippet as a complete
.htmldocument first, open it, and print the rendered result. - Many pages or automated jobs: use a command-line renderer such as
wkhtmltopdf.
A browser prints the rendered document, not the characters in a code editor. If you want the source code itself as readable text, print or export it from your editor instead.
Convert an HTML page to PDF in Chrome
- Open the webpage or local HTML file in Chrome.
- Choose File → Print, or press
Ctrl+Pon Windows/Linux or⌘+Pon macOS. - In the destination list, select Save as PDF (the exact label can vary by operating system or locale).
- Set the page range, paper size, orientation, margins, scale, and any background-graphics option you need.
- Check the preview, click Save, choose a filename and folder, and confirm.
Chrome’s documented print workflow supports open pages, images, and files. See Google’s Chrome print instructions for current interface details.
Make the Chrome PDF match the design
- Use Landscape for wide tables, dashboards, and code listings.
- Reduce Scale or choose a larger paper size when content is clipped at the right edge.
- Increase margins only after checking that headers and footers do not consume usable space.
- Enable background graphics when color panels, shaded table cells, or hero sections matter.
- Use a page range to avoid exporting unrelated sections.
Convert an HTML page to PDF in Firefox
- Open the webpage or
.htmlfile in Firefox. - Open the application menu and choose Print….
- In the destination list, select Save to PDF.
- Review the preview and set orientation, pages, color, paper size, scale, margins, headers and footers, and background printing as required.
- Click Print, select a location, and save the PDF.
Mozilla documents these controls in How to print web pages in Firefox. Its warning is important: “Web pages can set themselves up to appear different on paper to how they look on screen, so don’t be surprised to see some changes.” Print CSS, responsive breakpoints, hidden navigation, and page-break rules can all change the output.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors#1 Best Overall
- 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
Save raw HTML code as a PDF
If your HTML is only a snippet, create a complete document before printing. This example gives the browser something it can render:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My document</title>
<style>
@page { size: A4; margin: 18mm; }
body { font-family: Arial, sans-serif; line-height: 1.5; }
h1 { break-after: avoid; }
</style>
</head>
<body>
<h1>My document</h1>
<p>Content to export as PDF.</p>
</body>
</html>
- Paste the markup into a plain-text editor.
- Save it with an
.htmlextension, such asdocument.html. Ensure the editor does not append.txt. - Double-click the file or use your browser’s Open File command.
- Inspect the rendered page, then use the Chrome or Firefox print steps above.
Keep linked CSS, images, fonts, and JavaScript available at the paths used by the document. A missing relative asset can make the PDF look different from the browser preview. For source-code documentation, add a styled <pre> block; do not expect the print dialog to capture an editor’s syntax highlighting automatically.
Automate conversion with wkhtmltopdf
wkhtmltopdf is an open-source (LGPLv3) headless command-line renderer based on Qt WebKit. It accepts a URL or local file and writes a PDF, making it useful for repeatable jobs. Its usage manual documents paper size, orientation, margins, backgrounds, and other switches.
Basic commands
# Convert a public page
wkhtmltopdf https://example.com output.pdf
# Convert a local file (use an absolute path if needed)
wkhtmltopdf file:///Users/you/site/index.html output.pdf
# Common layout options
wkhtmltopdf --page-size A4 --orientation Portrait
--margin-top 15mm --margin-right 15mm
--margin-bottom 15mm --margin-left 15mm
--background https://example.com output.pdf
The project documentation’s example is wkhtmltopdf http://google.com google.pdf. Treat it as usage syntax, not a guarantee that every modern site will render correctly. Qt WebKit may not match a current Chromium engine, particularly on script-heavy applications, modern CSS, authentication flows, or content that appears only after interaction.
Rank #2
- 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 to use the command line
- Use it when the same conversion must run in a script, build pipeline, or scheduled job.
- Prefer browser printing for an occasional document or a page that depends on current browser JavaScript.
- Test representative pages before converting a large batch; the reviewed documentation does not establish universal fidelity, speed, or compatibility rankings.
PDF settings that prevent common layout problems
Page size, orientation, and scale
Choose a paper size used by your audience (such as A4 or Letter), then select portrait or landscape based on the widest element. Scale the page down only enough to prevent clipping; excessive reduction makes text hard to read.
Margins and page breaks
Use print preview to find headings stranded at the bottom of a page, tables split in awkward places, or content hidden behind browser headers and footers. CSS rules such as break-before, break-after, and break-inside can improve pagination in browsers that support them, but always verify the actual PDF.
Backgrounds, colors, and images
Background graphics are commonly disabled by default. Enable the relevant print-background option when a colored panel or shaded table conveys meaning. If an image is missing, confirm its URL, file permissions, and that it has finished loading before printing.
Screen layout versus print layout
Responsive and print-specific CSS may intentionally hide navigation, change fonts, or reflow columns. Compare the preview with the browser page rather than assuming the screen is the final document.
Rank #3
- 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
Troubleshoot a failed or inaccurate conversion
The PDF is blank
Confirm that the URL loads normally and that a local file contains valid, complete HTML. For JavaScript-rendered content, wait until the page is populated before printing. A command-line WebKit renderer may not execute the application code your current browser does.
Content is cut off or overlaps
Switch to landscape, lower scale slightly, widen the paper size, or reduce margins. Look for fixed-width containers and CSS positioned elements that exceed the printable area.
Colors or backgrounds disappeared
Enable background printing in the dialog. If the design still changes, inspect print media rules and contrast; some sites deliberately simplify color for paper.
Images, fonts, or styles are missing
Check relative paths from the HTML file’s location, mixed-content restrictions, blocked requests, and whether remote resources finished loading. Bundle critical assets locally when a repeatable export must not depend on a network request.
Rank #4
- 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
The local file will not open correctly
Verify the extension is truly .html, not .html.txt, and open it in the browser rather than an editor preview. If the page relies on server-side code, run it from the appropriate local development server instead of opening a template file directly.
wkhtmltopdf output differs from Chrome
This is expected when the page uses CSS or JavaScript features outside Qt WebKit’s behavior. Simplify the print stylesheet, try a browser-based workflow, or choose a renderer whose engine matches your production page.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup: ScreenshotNeo
If you need a rendered page or HTML endpoint captured through an API, ScreenshotNeo returns a PNG, JPEG, WebP, or PDF from one GET request. It accepts consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers.
Use the ScreenshotNeo API documentation for all options, including full-page capture with lazy images, CSS-selector element capture, dark mode, 12 device presets or custom viewports, retina scale, PDF paper size/margins/landscape/page ranges, custom CSS and JavaScript, clicks, selector waits, delays, network-idle waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, chosen-TTL caching, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, usage data, and the OpenAPI specification.
Recommended Free Tools
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
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)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
The Free plan includes 1,000 shots each month without a card. Paid plans start at $5 for 3,000 shots, and every feature is available on every plan. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. Create a free ScreenshotNeo account to try it.
Best Value
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
Free browser printing versus command line
| Method | Best for | Controls | Main limitation |
|---|---|---|---|
| Chrome or Firefox print | One-off pages and local files | Preview, page range, paper, orientation, scale, margins, backgrounds | Manual; output can change with print CSS and page state |
| wkhtmltopdf | Repeatable scripts and batch jobs | Documented page size, orientation, margins, backgrounds, and command-line input | Qt WebKit may not support every modern site |
| ScreenshotNeo API | Developer workflows, PDFs, and automated captures | PDF layout plus waits, cleanup, devices, headers, cookies, blocking, caching, bulk and async options | Requires an API key; usage is metered by plan |
Frequently asked questions
How do I convert an HTML file to PDF for free?
Open the file in Chrome or Firefox, open Print, choose Save as PDF or Save to PDF, review the preview, and save.
Can I paste HTML directly into a browser print dialog?
Not through the documented Chrome and Firefox workflows. Save the markup as an .html file and render it first, or use a converter that explicitly accepts pasted HTML.
Why does my PDF look different from the webpage?
Print styles, responsive rules, disabled backgrounds, page breaks, and unfinished assets can all alter the output. Use print preview and adjust the relevant settings.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Is wkhtmltopdf suitable for every modern website?
No. It uses Qt WebKit, so script-heavy pages or newer CSS may require browser printing or another renderer.
Quick Recap
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.

