Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

PDF Export Looks Wrong? Check Your Print CSS First

Browser PDFs use paginated print rendering. Check the media styles, page geometry, breaks, print settings, and target browser before blaming the export tool.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When a browser-generated PDF differs from the page on screen, check the print stylesheet and page layout before blaming the export tool. Browsers may use print-specific CSS and paginate the document; settings such as paper size, scale, margins, and background printing can also change the result. A renderer bug or configuration problem remains possible, so the key is to isolate the cause.

First identify how the PDF is being made

Start with the rendering path: are you using a browser’s Print dialog, calling window.print(), or generating the file with automation such as Puppeteer? Record the browser and version, automation library and version if applicable, the page’s URL or local content state, and whether the run is headed or headless. These details matter because different export paths and engines need not behave identically.

As an Amazon Associate I earn from qualifying purchases.

For Puppeteer specifically, Page.pdf() uses print media by default. To generate a PDF using screen media instead, call page.emulateMediaType('screen') before page.pdf(). See the Puppeteer Page.pdf() documentation. Do not assume that another exporter has the same default.

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

Check which CSS applies in print

Printing a webpage to paper or PDF activates print media styles. Those rules can intentionally hide navigation, change colors or typography, adjust widths, or remove elements that appear on screen. A stylesheet can target print with a media="print" attribute, or rules can be grouped in @media print. Specificity and cascade order still apply, so a print declaration may be overridden by a more specific or later rule.

#1 Best Overall
Brother DCP-L2640DW Wireless Compact Monochrome Multi-Function Printer, Copy, Scan, Duplex, Mobile Printing
  • BEST FOR SMALL BUSINESSES – Engineered for extraordinary productivity, the Brother DCP-L2640DW Monochrome (Black & White) 3-in-1 combines laser printer, scanner, copier in one compact footprint and delivers high-quality black & white prints
  • FAST PRINTER WITH EFFICIENT SCANNING – Produces documents quickly with print speeds up to 36 ppm(2) and scan speeds up to 23.6/7.9 ipm(3) (black/color). A 50-page auto document feeder(4) allows for convenient, time saving multi-page scanning and copying
  • FLEXIBLE CONNECTION OPTIONS – Easily navigate the changing demands of your business with secure multi-device connectivity via built-in dual-band wireless (2.4GHz / 5GHz) and Ethernet. Or connect locally to a single computer via USB interface
  • BROTHER MOBILE CONNECT APP – Print, scan, and manage your wireless printer anytime, from almost anywhere from your mobile device. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(5)
  • CHOOSE BROTHER GENUINE TONER – When it’s time to replace your toner, be sure to choose Brother Genuine TN830 or TN830XL replacement toner. And with Refresh EZ Print Subscription Service, you’ll never worry about running out of toner again and you’ll enjoy savings of up to 50%(6) on Brother Genuine Toner. Get started with Refresh today with a Free Trial(1)

Inspect the linked stylesheets and every print-media block, then compare the relevant computed styles in screen and print modes. A print preview or browser print-media emulation can help isolate the cascade from other export settings. MDN explains print stylesheets and print media queries.

Set the page size, orientation, and margins deliberately

A PDF is paginated output, not simply a screenshot stretched onto a sheet. Paged-media layout divides a document into pages and fragments content to fit. The @page rule can specify page dimensions, orientation, and margins, while the print interface’s paper size, scale, and margin choices can affect the final page.

Rank #2
Brother HL-L2405W Wireless Compact Monochrome Laser Printer with Mobile Printing, Black & White Output | Includes Refresh Subscription Trial(1), Works with Alexa
  • BEST FOR HOMES & HOME OFFICES – Engineered for consistent, premium print quality, the Brother HL-L2405W Monochrome (Black & White) Laser Printer delivers sharp, crisp prints at an affordable price. Prints one-sided documents at speeds up to 30ppm(2)
  • COMPACT, CONNECTED PRINTER – Flexible connection options make this an ideal printer for home use and at-home offices. Securely connect to multiple devices with built-in dual-band wireless (2.4GHz/5GHz) or locally to a single computer via USB interface
  • BROTHER MOBILE CONNECT APP – Manage your printer remotely and print from your mobile device anytime, from almost anywhere. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(3)
  • VERSATILE PAPER HANDLING – Enjoy seamless, reliable everyday printing with the 250-sheet paper tray(4) and a manual feed slot that enables printing on envelopes and specialty pape
  • BROTHER IS AT YOUR SIDE – Backed by Brother with a 1-year limited warranty and free online, call, or live chat support for the life of your printer

Check the CSS page setup alongside the values selected in the print dialog. If content is unexpectedly small, clipped, or surrounded by whitespace, change one setting at a time and preview again. MDN documents the CSS @page rule and paged media and page fragmentation. MDN marks @page Baseline 2024, but support for individual parts varies and older browsers may not support them.

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

Trace cut-offs and awkward page breaks

If text or an element is split or missing at a page boundary, inspect the fragmentation rules and the layout of the affected content. Look for page-break declarations and break-* rules, as well as long content, fixed-height containers, and regions with constrained overflow. These are places to investigate, not universal explanations: the actual cause depends on the page and renderer.

Rank #3
Canon imageCLASS LBP6030w - Monochrome Single-Function Wireless Compact Wireless Laser Printer, 1 Year Limited Warranty, 19 PPM, White - Print Only
  • FAST PRINT SPEEDS: Print up to 19 pages per minute.
  • COMPACT DESIGN: Space-saving, compact design fits anywhere in your home, school or small office.
  • WIRELESS CONNECTIVITY: Print from almost anywhere in your workspace using your compatible mobile device.
  • PAPER CAPACITY: Up to 150 sheets.
  • SUSTAINABILITY: Uses less than 2 watts in Energy Saver mode.

Use the paged-media references above to understand how content is fragmented, then test the affected element in print preview. If a break rule is intended to keep a component together, verify that it works in the specific browser and version you ship; do not assume identical behavior across engines.

Separate browser headers and footers from your document

Browser-added print headers and footers can put information around the page when there is room. They are print-interface furniture, not necessarily content generated by your site. In Chrome, check the print dialog and disable headers and footers if they are unwanted. Also review @page margins, since they determine the space available around the page content. Chrome documents print margins and headers or footers.

Rank #4
Brother HL-L2460DW Wireless Compact Monochrome Laser Printer with Duplex, Mobile Printing, Black & White Output | Includes Refresh Subscription Trial(1), Works with Alexa
  • BEST FOR HOME OFFICES & SMALL TEAMS – Engineered for consistent, premium print quality, the Brother HL-L2460DW Monochrome (Black & White) Laser Printer produces documents that are clear, crisp, and easy to review and share, all at an affordable price
  • COMPACT, CONNECTED, EXCEPTIONALLY EFFICIENT– Connect with built-in dual-band wireless (2.4GHz/5GHz), Ethernet, or to a single computer via USB interface. Prints at speeds up to 36ppm(2), plus automatic duplex printing saves time and reduces paper waste
  • BROTHER MOBILE CONNECT APP – Manage your wireless printer remotely and print from your mobile device anytime, from almost anywhere. Order Brother Genuine Supplies, track toner usage, and complete more work on-the-go(3)
  • VERSATILE PAPER HANDLING – Tackle high-volume black & white printing with the 250-sheet capacity paper tray.(4) The manual feed slot enables printing on envelopes and specialty paper
  • BROTHER IS AT YOUR SIDE – Backed by Brother with a 1-year limited warranty and free online, call, or live chat support for the life of your printer

Chrome’s margin-box CSS is a separate, browser-specific capability: Chrome for Developers wrote on October 30, 2024, “From Chrome 131 you can use CSS to add content to the margins of pages when they are printed.” Check current support in your target browsers before relying on it; a Chrome feature should not be treated as a cross-browser guarantee.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Investigate color only when color is the defect

Color changes do not necessarily indicate a sizing or pagination problem. Puppeteer documents that PDF colors are modified for printing by default and points to -webkit-print-color-adjust when exact colors are required. If only colors differ, check the print color-adjustment behavior and whether background graphics are enabled in the print settings. For Puppeteer, also consult the PDF options for the installed version, because API behavior and available options are version-sensitive. The Puppeteer PDF documentation describes its default and the color-adjustment property.

Best Value
HP LaserJet M110w | Monochrome | Laser Printer
  • FROM AMERICA'S MOST TRUSTED PRINTER BRAND – Perfect for small teams printing professional-quality black & white documents and reports. Perfect for 1-3 people
  • WORLD'S SMALLEST LASER IN ITS CLASS – Precision laser printing that fits anywhere
  • FAST PRINT SPEEDS – Up to 21 black-and-white pages per minute single-sided
  • WIRELESS WITH SELF-RESET – Helps you stay connected
  • PRINT FROM ANY DEVICE – Wireless printing from any mobile device, PC or tablet. Works with Microsoft, Mac, AirPrint, Android, Chromebook and more

Use a controlled reproduction to narrow it down

  1. Capture the setup. Note the export path, browser and version, operating system, paper size, scale, margins, and relevant automation options. Include application state and whether the run is headed or headless.
  2. Compare media modes. Inspect screen and print styles, including linked print stylesheets, @media print rules, specificity, and overrides. In Puppeteer, compare the documented print-media default with a run that calls page.emulateMediaType('screen') before generating the PDF.
  3. Check the page box and print interface. Compare @page size, orientation, and margins with the print dialog’s paper, scale, and margin settings. Check for browser-added headers and footers.
  4. Investigate the specific symptom. For cuts or page splits, inspect fragmentation and constrained layouts. For color alone, check print color adjustment and background printing rather than changing page geometry.
  5. Test the engines you actually support. Repeat the reproduction in each target browser and version. Feature support varies, so record the setup with each result instead of extrapolating from one engine.

If a defect persists after these checks, investigate other explanations in that reproduction, such as a renderer bug, missing resources, application state, user print settings, or a different export path. The documentation establishes that print-specific rendering is expected; it does not establish that every PDF defect has a CSS cause.

Quick Recap

Bestseller No. 3
Canon imageCLASS LBP6030w - Monochrome Single-Function Wireless Compact Wireless Laser Printer, 1 Year Limited Warranty, 19 PPM, White - Print Only
Canon imageCLASS LBP6030w - Monochrome Single-Function Wireless Compact Wireless Laser Printer, 1 Year Limited Warranty, 19 PPM, White - Print Only
FAST PRINT SPEEDS: Print up to 19 pages per minute.; PAPER CAPACITY: Up to 150 sheets.; SUSTAINABILITY: Uses less than 2 watts in Energy Saver mode.
$134.99
Bestseller No. 5
HP LaserJet M110w | Monochrome | Laser Printer
HP LaserJet M110w | Monochrome | Laser Printer
WORLD'S SMALLEST LASER IN ITS CLASS – Precision laser printing that fits anywhere; FAST PRINT SPEEDS – Up to 21 black-and-white pages per minute single-sided

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. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver 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.