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.

To keep colors when exporting HTML to PDF, enable the print dialog’s background option and, if you control the page, add print-color-adjust: exact (plus -webkit-print-color-adjust: exact for Chromium workflows). These settings request that authored backgrounds, gradients, and images remain visible, but a user’s print preference or the conversion engine can still override them. Always verify the print preview and the PDF produced by your actual pipeline.

Why HTML colors disappear in a PDF

Web browsers optimize pages for paper. Their default print behavior may remove background colors and images to save ink or improve legibility. A page can therefore look correct on screen while its PDF has a white background. Print-specific CSS can also intentionally change the layout or palette; Mozilla notes that web pages may appear differently on paper than on screen (Firefox printing help).

The CSS property involved is print-color-adjust. MDN defines it as the control over what the user agent may do to optimize an element’s appearance on an output device (MDN reference). Its initial value, economy, permits those optimizations. exact asks the renderer to preserve the authored appearance, but it is not a way to override a person’s “do not print backgrounds” choice.

One-off export in Firefox

  1. Open the page and press Ctrl+P on Windows/Linux or Command+P on macOS.
  2. In the print dialog, select Save to PDF as the destination and inspect the preview.
  3. Expand More settings.
  4. Turn on Print backgrounds.
  5. Leave Format set to Original. Firefox removes the background option when Simplified is selected.
  6. Choose the required paper size, orientation, margins, and page range, then save the PDF.

Firefox may also show a color-mode control, depending on the available printer configuration. If the preview is still monochrome, check that the destination is a color-capable PDF printer and that no operating-system print preference is forcing grayscale.

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

Export from HTML you control

Add a print stylesheet that targets the elements whose color carries meaning. Put it in your normal stylesheet or in a <style media="print"> block:

@media print {
  .preserve-color {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

Then apply the class to the relevant cards, headers, charts, or page wrapper:

<section class="preserve-color">
  <h1>Quarterly report</h1>
  <p>The blue panel remains colored in print when backgrounds are enabled.</p>
</section>

Use the rule selectively rather than on every element. A full-page exact adjustment can consume more ink and may reduce contrast if the design was not prepared for paper. Set explicit print colors for text and borders, and provide a non-color cue (labels, patterns, or icons) when color alone communicates status.

Check print media styles

Print CSS can hide navigation, alter font sizes, or replace a dark theme with a light one. Search your stylesheets for @media print, display: none, background declarations, and rules that set color or filter. A missing color may be an intentional print rule rather than a browser failure.

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.

Understand the override limit

print-color-adjust: exact is a request to the user agent. MDN’s guidance on color explains that user preferences and output constraints remain authoritative (Using color wisely). A print dialog with backgrounds disabled can therefore produce a white page even when the CSS is correct. Give users a visible instruction to enable background printing when fidelity matters.

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⁴

Automated HTML-to-PDF conversion

Automation has two independent controls: the page’s print CSS and the renderer’s PDF options. Configure both, then inspect a generated file in the same environment used in production.

Puppeteer (Chromium)

Puppeteer’s page.pdf() uses print CSS media and documents the Chromium-prefixed color-adjust property (Puppeteer page.pdf documentation). A minimal Node.js example is:

import puppeteer from 'puppeteer';

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com/report', { waitUntil: 'networkidle0' });
await page.emulateMediaType('print');
await page.pdf({
  path: 'report.pdf',
  format: 'A4',
  printBackground: true,
  margin: { top: '16mm', right: '16mm', bottom: '16mm', left: '16mm' }
});
await browser.close();

printBackground: true tells Chromium to include CSS backgrounds. Keep -webkit-print-color-adjust: exact in the page CSS for elements that must retain authored colors. Wait for fonts and images as well as network activity when your application loads them lazily; otherwise the PDF can contain blank areas even though its colors are configured correctly.

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

Gotenberg

Gotenberg’s Chromium conversion documentation identifies printBackground, omitBackground, and the document’s CSS as inputs to the final PDF (Gotenberg HTML-to-PDF documentation). Do not set omitBackground when you need a colored page. If a request is sent through a wrapper or service, verify that it actually forwards the background option instead of silently applying its own defaults.

Fonts, images, and transparency

  • Use absolute or correctly rooted asset URLs that the converter can access.
  • Wait for web fonts before creating the PDF; a fallback font can change line wrapping and move colored blocks.
  • Give images explicit dimensions to reduce layout shifts.
  • Check alpha transparency. A transparent element may correctly reveal a white PDF page when the intended page background was never painted.
  • For charts, include text labels or patterns so the document remains understandable in grayscale.

Adobe Acrobat web-page conversion

Acrobat’s web-page conversion settings include Retain page background for background colors and tiled images. The same settings expose page size, orientation, margins, and wide-content scaling (Adobe’s web-to-PDF settings). Enable background retention, review the page-size and scaling choices, and generate the PDF. Acrobat is useful when a conversion workflow needs these controls without maintaining browser automation code.

Rank #3
HP Smart Tank 5000 Wireless All-in-One Ink Tank Printer, Scanner, Copier with 2 Years of Ink Included, Best-for-Home, Cartridge-Free, Refillable and AI-Enabled. (5D1B6A)
  • 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.

Choose the right workflow

Situation Best first choice Color control Important check
One page, one time Browser print dialog Enable Print backgrounds or Background graphics Preview before saving
You own the HTML and export repeatedly Print CSS plus a renderer option print-color-adjust: exact and renderer background flag Test the production renderer
Conversion with GUI controls Acrobat web-page conversion Retain page background Check scaling and orientation
Server-side batch jobs Puppeteer or Gotenberg Explicit background setting and print CSS Wait for assets and inspect output

Troubleshooting missing colors

Preview is white, but the webpage is colored

Enable Print backgrounds (Firefox) or the equivalent background-graphics setting in your browser. If the control is absent in Firefox, change Format from Simplified to Original.

CSS is present but automation still drops backgrounds

Set the renderer’s background option. In Puppeteer that is printBackground: true; in Gotenberg, use the corresponding printBackground setting and avoid omitBackground. Confirm that the service receiving your request supports and forwards the option.

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

Only some components lose color

Inspect the computed print styles for those elements. A more specific print rule, a pseudo-element, an SVG fill, or a background image may be responsible. Apply the exact color-adjust rule to the component and ensure its assets are reachable by the converter.

Colors are present but look different

Print media styles, color management, transparency, and paper-size scaling can alter perception. Compare the PDF at 100% zoom, check the CSS used under print media, and avoid relying on subtle color differences without labels.

PDF pages are blank or incomplete

This is usually a loading or access problem, not a color setting. Wait for network idle and fonts, authenticate requests where required, and make sure every image, stylesheet, and font URL is available to the conversion process.

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

Backgrounds work locally but not in production

Pin the browser or conversion-service version, record the exact options sent, and compare a production-generated PDF with a local one. Differences in user preferences, sandbox permissions, blocked resources, or print CSS can change the result.

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

Or skip the browser setup

ScreenshotNeo can return a screenshot or PDF from one GET request, so you do not need to configure a browser instance. It accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. 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. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.

For a PDF-capable endpoint, request the URL as shown below (see the ScreenshotNeo documentation for parameters and output options):

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

ScreenshotNeo’s options include full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets or custom viewports, retina scale, PDF paper size/margins/orientation and page ranges, custom CSS and JavaScript, click-before-capture actions, hidden selectors, waits for selectors/delays/network idle, request and ad blocking, custom headers/cookies/user agents, timezone and geolocation, transparent backgrounds, resizing, selectable-TTL caching, signed image links, asynchronous jobs with signed webhooks, bulk capture for up to 100 URLs per call, a usage API, and an OpenAPI specification. Parameters used by other screenshot APIs also work, easing migration.

The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is included on every plan, and yearly billing provides two months free. Sign up for the free plan.

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

Operational and cost considerations

  • Fidelity: Treat CSS and renderer settings as a pair; either one alone can be overridden.
  • Repeatability: Fix browser, fonts, assets, and page data when PDFs must be identical across runs.
  • Performance: Waiting for network idle improves completeness but can delay pages with persistent analytics connections; use a deliberate selector or bounded delay when appropriate.
  • Privacy: Review cookies, authorization headers, and third-party resources before sending protected pages to a hosted converter.
  • Cost: Browser automation consumes your own compute. ScreenshotNeo bills only clean shots and does not bill failed loads, bot checks, blank pages, timeouts, or cache hits.

Frequently Asked Questions

Does converting HTML to PDF preserve hover colors?

Usually not. PDF generation uses print media and captures a static state; trigger the desired state before conversion or style it explicitly for print.

Can CSS force backgrounds when a user disables them?

No. print-color-adjust: exact requests preservation, but the user’s print preference and the renderer’s policy take priority.

Should I use RGB or CMYK values in HTML?

Use valid CSS colors and verify the target PDF workflow. The browser or converter performs the output color management; HTML alone does not guarantee a particular print profile.

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.

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