Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

HTML to PDF Conversion: Why Are CSS Shadows Missing?

Missing CSS shadows in a PDF usually point to renderer support, version differences, or print styles. Here’s how to isolate the cause before changing your conversion tool.

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.

CSS shadows disappear in HTML-to-PDF conversion most often because the converter’s rendering engine or version does not support box-shadow, or because print-specific CSS changes the style. Even when supported, blur can look different in a PDF than in a browser. Identify the converter and version first, then inspect the element’s styles in print mode.

Why a browser shadow may disappear in a PDF

“HTML to PDF” is a workflow, not a single renderer. A browser, library, or hosted conversion service may use a different rendering engine—and a different version of that engine—than the browser where the page looks right. CSS support and output fidelity therefore depend on the specific conversion pipeline.

WeasyPrint illustrates why version matters: its version 58 API reference says box-shadow is unsupported, while its current documentation lists the property as supported. Check the documentation for the exact release that generated your PDF rather than relying on advice for another version. WeasyPrint 58 API reference · Current WeasyPrint API reference

Check print styles before changing the converter

A page can use different CSS for printing than for screen display. A declaration may be omitted or overridden inside @media print, so the browser preview and the PDF can legitimately differ. Chrome’s documentation describes print media as controlling the page’s print appearance and explains how to emulate it in DevTools. Emulate CSS media types in Chrome DevTools

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open the page in Chrome and open DevTools.
  2. In the DevTools rendering controls, emulate the print media type.
  3. Select the affected element and inspect its computed box-shadow value. Check whether a print rule removes or overrides it, and whether the relevant stylesheet has loaded.

If the computed print style has no shadow, fix the CSS or override that applies in print mode. If it does have a shadow, continue checking the converter’s support and PDF rendering.

Separate missing shadows from different-looking blur

A shadow that is absent is a different problem from one that is faint, clipped, or blurrier than expected. Current WeasyPrint documentation lists box-shadow as supported but says blur is approximated using gradients; some PDF readers may render it poorly, and extreme blur radii or regions have limitations. In that case, the converter may recognize the property without reproducing the browser’s appearance exactly.

Rank #2
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option

Try a simple shadow with smaller blur and spread values in the same pipeline. If the result looks wrong, open the PDF in another reader as well: the converter’s output and the PDF viewer’s display are separate variables.

Use this troubleshooting sequence

  1. Identify the PDF path. Record the product or library, renderer engine if known, and exact version used to create the file.
  2. Verify support for that release. Check the release-specific documentation for box-shadow and any blur limitations.
  3. Inspect print-mode styles. Emulate print media in DevTools and check the affected element’s computed style, @media print overrides, and stylesheet loading.
  4. Classify the symptom. Determine whether the shadow is wholly absent or present but different in color, extent, or blur.
  5. Reduce the case. Create a minimal page with one element and a simple shadow, then convert it through the same pipeline. This isolates the rendering behavior from unrelated page CSS.
  6. Check capture readiness. If styles or dynamic content load late, verify that the page is ready before the PDF capture begins.

These steps help isolate likely causes; they do not guarantee that a particular converter or page is responsible.

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.

For Chrome Headless, verify the PDF command and timing

Chrome Headless documents --print-to-pdf for generating a PDF, --timeout to set the capture wait limit, and --no-pdf-header-footer to omit generated headers and footers. These flags do not document a switch for enabling box-shadow support. Check the command and capture timing, but do not expect the header/footer option to fix CSS effects. Chrome Headless reference

Print and paged-media behavior can also vary by browser version. Chrome and Firefox support @page; Chrome 131 added generated content for page margins. These details matter when investigating print-specific layout, but they do not establish the cause of a missing shadow on their own. Chrome for Developers: print margin boxes

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

Or skip the browser setup

For a screenshot rather than a PDF, ScreenshotNeo offers a one-call website capture API and an MCP server for AI agents. Its capture flow accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before the shot; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify page verdict and billing status in headers. AI agents can use its MCP tools to take screenshots, get page information, or capture PDFs.

Example cURL call (replace the sample URL and API key with your own):

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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 API documentation for request options. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for free.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.