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.

wkhtmltopdf supports a practical subset of older CSS, not the full modern web platform. Its 0.12.x releases use an old Qt WebKit engine: ordinary document flow, tables, floats, positioning, typography, colors, borders, backgrounds, and basic print styling are the safer choices. Do not rely on modern flexbox or CSS Grid for a production layout. Compatibility depends on the exact wkhtmltopdf binary and Qt build, so test the output you will actually deploy.

Why wkhtmltopdf CSS support is limited

wkhtmltopdf converts HTML into PDF or image files using Qt WebKit. The age of that embedded browser, rather than the age of the CSS specification, sets the practical compatibility ceiling. The wkhtmltopdf project status says Qt 4, which the tool uses, has not been supported since 2015, and that its WebKit has not been updated since 2012. The project’s downloads page lists the 0.12.6 series as stable, released June 11, 2020. The GitHub repository was archived on January 2, 2023.

Those dates matter when a page looks correct in a current Chrome, Firefox, or Safari but breaks in a generated PDF. A modern browser’s CSS behavior is not a reliable proxy for wkhtmltopdf’s. Nor does a successful PDF generation mean that all styles were applied: unsupported declarations may simply be ignored without an error.

CSS features that are the safest baseline

For a template that must work in wkhtmltopdf, start with CSS patterns that were established in older browsers. These are practical guidance, not a guarantee for every property, Qt build, or document.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Feature area Practical guidance
Normal flow and box model Prefer block and inline elements, explicit widths and heights, margins, padding, and borders. Keep layout structure straightforward.
Layout Floats, tables, fixed positioning, and absolute positioning are more suitable starting points than modern layout systems. Check overflow and positioning in the final PDF.
Visual styling Colors, typography, borders, and backgrounds are generally within the older-browser baseline. Confirm font availability and exact rendering on the deployment binary.
Selectors and effects Simple selectors and older WebKit-prefixed effects are more dependable than newer selector or effect APIs. Prefixes do not make a feature universally supported.
Print layout Basic print-oriented page-break rules can help, but complex pagination should be checked in representative multi-page output.

Use the table as a starting point, not as an exhaustive property matrix. The project does not publish a complete CSS-property support matrix in the cited documentation; edge cases can vary between builds.

Flexbox, Grid, and modern CSS

Flexbox

Do not treat modern flexbox as a safe baseline. A project forum response says version 0.12.4 does not support flexbox. A GitHub issue for 0.12.6 reports flexbox failure even with patched Qt and prefixed declarations. These reports do not prove that every flex-related declaration fails on every build, but they are strong reason not to make an essential layout depend on it.

If a page currently uses display: flex, wrapping, alignment, or distribution to arrange critical content, create a fallback using tables, floats, or normal flow and check it in the PDF. A syntactically valid stylesheet can still yield a structurally different page when the renderer ignores the layout declaration.

CSS Grid

CSS Grid should also be treated as unsupported for dependable output. The available project material does not establish a reliable Grid implementation, and the embedded browser’s age makes current browser behavior an unsafe assumption. Rework a report or invoice layout into simpler columns, tables, or block elements if it must stay on wkhtmltopdf.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Other newer features

Gradients, transforms, animations, pseudo-elements, media queries, calc(), SVG styling, web fonts, and advanced selectors require caution. They may work in a particular build or fail partially; the evidence does not establish a universal result for each property. Keep a plain fallback for important content and verify the specific effect in generated files. Avoid describing wkhtmltopdf simply as supporting “CSS3”: that label covers too many features and conceals important differences.

Why Bootstrap and Tailwind layouts can break

Frameworks emit CSS for the browser engines they target. A template that depends on flexbox or Grid for columns, spacing, or responsive rearrangement can lose its intended structure when wkhtmltopdf does not apply those declarations. Utility classes do not bypass the renderer’s limitations; the resulting PDF is still governed by the same old WebKit engine.

Inspect the compiled CSS used by the template, not just its framework name. Identify which declarations are essential to layout, then replace the risky ones with simpler alternatives or generate PDFs in a current browser engine. If a framework’s styles include fallback rules, verify that the fallback actually controls the page at the viewport and print conditions used for capture.

JavaScript and page readiness

wkhtmltopdf exposes options including --run-script and --window-status, but having those options does not make its JavaScript runtime current. Modern scripts may rely on APIs that the old engine lacks. A page can therefore have both CSS and JavaScript compatibility problems, especially when content is built dynamically.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

The project status recommends Puppeteer or another modern wrapper for dynamic JavaScript pages. For a static report, simpler HTML and CSS may be enough; for a page whose content appears only after modern client-side code runs, use a renderer with a current browser engine rather than assuming a wait option will fix the runtime.

Build differences and deployment checks

“wkhtmltopdf 0.12.6” alone may not fully describe the renderer you are using. Builds can differ in whether Qt is patched, and the usage documentation notes that some options require patched Qt. Patched versus unpatched Qt can affect available behavior. Record and test the exact binary installed in production rather than relying on a developer’s local package or another machine’s results.

Before rolling out a template, make a small test set that exercises the layout features and assets that matter:

  • Generate a one-page document with the core typography, widths, table or float layout, and backgrounds.
  • Generate a multi-page document with long tables, page-break rules, headers or footers if used, and content close to page boundaries.
  • Test local and remote images, fonts, and stylesheets under the same runtime conditions as production.
  • Include any flexbox, Grid, media-query, SVG, or JavaScript-dependent content that cannot be removed.
  • Run the test with the exact production executable and Qt build, then inspect the PDF visually rather than checking only the process exit status.

Re-run this set after changing the binary, template, CSS framework, fonts, or asset-loading setup. A PDF that opens successfully is not sufficient evidence that its layout is correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Choosing whether to keep wkhtmltopdf

Keeping wkhtmltopdf can be reasonable when its older CSS baseline fits the document, the output is stable in the exact deployed build, and replacing the renderer would add more risk than value. It is a poor fit when the template depends on current browser CSS, substantial client-side JavaScript, or newer responsive layout behavior.

Compare alternatives on the requirements that affect your output, not only on a label such as “HTML to PDF.” Consider the age and capabilities of the HTML/CSS engine, JavaScript execution and page-load control, print pagination and headers or footers, maintenance and security status, and deployment footprint. The wkhtmltopdf project recommends Puppeteer or another modern wrapper for dynamic JavaScript pages, and suggests WeasyPrint or Prince for controlled reports. Qt WebEngine, which is Chromium-based, represents a more current browser-engine architecture. These choices are not interchangeable in every workflow; validate pagination, fonts, assets, and operational requirements before migrating.

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

Or skip the browser setup

If you need a clean website capture rather than a self-hosted wkhtmltopdf renderer, ScreenshotNeo is a website screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP, or PDF. For example, this cURL request saves a WebP screenshot of Stripe; see the ScreenshotNeo API documentation for request details.

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

ScreenshotNeo accepts cookie or consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The free plan includes 1,000 shots per month without a card; paid plans start at $5 for 3,000 shots. This is an API/service option for captures, not a claim that wkhtmltopdf’s CSS compatibility changes or that every PDF template will render identically.

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

Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Common troubleshooting cases

The PDF is made, but columns or alignment are wrong

Check whether the layout depends on flexbox or Grid, then test a table-, float-, or block-based fallback. Confirm the production binary and Qt build; a successful conversion does not report every ignored CSS declaration.

It looks right locally but not on the server

Compare the actual wkhtmltopdf executable, patched-Qt status, installed fonts, and local or remote asset access. Reproduce the production conditions with the same small test set before changing CSS to compensate for a different environment.

Dynamic content is missing

Determine whether the page requires modern JavaScript or waits for data to load. The available options include --run-script and --window-status, but they cannot supply APIs absent from the old runtime. For dynamic pages, follow the project’s recommendation to use Puppeteer or another modern wrapper.

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.

Page breaks split content unexpectedly

Test the print-oriented page-break rules against both short and long representative documents. Long tables and content near page boundaries deserve explicit inspection because basic support for page-break styling does not guarantee complex pagination behavior.

A visual effect vanishes without an error

Assume an unsupported or partially supported declaration may have been silently ignored. Reduce the effect to a minimal test case, add a basic fallback, and check output from the target binary. This is especially important for gradients, transforms, pseudo-elements, newer selectors, and SVG styling.

Frequently Asked Questions

Does a patched-Qt build guarantee modern CSS support?

No. Patched Qt can change available behavior, but reports document flexbox failures even with patched Qt in a 0.12.6 build.

Is there an official exhaustive CSS support list for wkhtmltopdf?

The project documentation cited here does not provide a complete property-by-property matrix, so compatibility for edge cases has to be verified against the exact build.

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

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.