October 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Fix Chrome Headless Screenshots That Cut Off Print-Style Web Pages

Chrome Headless offers different fixes depending on whether you need a taller viewport screenshot, a full-document image, or a print-layout PDF.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The fix depends on the file you need: a viewport screenshot, a full-page image, or a PDF using print layout. Chrome’s --screenshot and --print-to-pdf produce different outputs. A taller --window-size can show more of a known page in a viewport screenshot; capturing the entire document requires a full-page capture operation. If you need the site’s print CSS, create a PDF.

First identify the output you expect

What you need Use What it captures
Viewport image --screenshot The rendered view at the selected viewport size. Raising the viewport height can reveal a known amount of content.
Full-document image DevTools Protocol Page.captureScreenshot with captureBeyondViewport: true, or an automation wrapper with full-page capture A clip sized to the document rather than just the initial viewport.
Print-layout document --print-to-pdf A paginated PDF rendered through Chrome’s print pipeline, where print CSS can apply.

Chrome documents the screenshot and PDF flags separately. A PNG of the screen is not a print preview, and a PDF is not a full-page PNG. If you want print styling but must deliver a raster image, render to PDF and rasterize it, or use an automation library that lets you select print media; verify the result because the exact steps depend on the library.

As an Amazon Associate I earn from qualifying purchases.

Make a viewport screenshot taller

For a page whose relevant content fits within a known CSS viewport, set its dimensions explicitly. Chrome’s CLI reference documents --window-size=WIDTH,HEIGHT for screenshot captures.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
chrome --headless --screenshot --window-size=1280,2000 https://example.com/

Replace the example URL and dimensions with your target. This changes the viewport used for the capture; it does not reliably capture an arbitrarily long document. Check the saved image’s pixel dimensions and compare the visible area with the target viewport and the page’s document height. If the page is longer than the selected viewport, use a full-page capture method instead.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Capture the full document with the DevTools Protocol

For content below the fold, use Chrome DevTools Protocol’s Page.captureScreenshot with captureBeyondViewport: true. The protocol method exposes this option; Chromium’s Page implementation obtains full-page dimensions and uses them for the capture clip. An automation wrapper that offers full-page screenshots can perform this work for you. The exact wrapper API varies, so consult its documentation rather than assuming that a larger initial viewport is equivalent.

For unusually tall pages, the browser can reject a capture that exceeds its image-size limits. Chromium’s current source includes a “Page is too large” rejection path. If that happens, consider capturing sections separately or generating a PDF, then verify the resulting dimensions and output. This is implementation behavior: check the Chrome or Chromium version you run, since living protocol and source references may change.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Generate a PDF when you want print layout

Use Chrome’s print pipeline if the intended output is paginated and should reflect the page’s print rules, such as @media print and @page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
chrome --headless --print-to-pdf --no-pdf-header-footer https://example.com/

--no-pdf-header-footer removes Chrome’s PDF header and footer furniture; it does not fix a screenshot crop. Chrome’s current command-line reference says this flag replaced the older --print-to-pdf-no-header name, so an older installed version may need the old spelling. Inspect the page’s print CSS if content disappears or changes size in the PDF.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Wait for content that loads after navigation

A capture can be incomplete even when the chosen capture mode is correct. The CLI --timeout sets a maximum wait before Chrome captures, including while the page is still loading; it is not proof that application content, images, or fonts are ready. Chrome also documents --virtual-time-budget for time-dependent JavaScript.

chrome --headless --screenshot --timeout=5000 https://example.com/

This allows up to five seconds before capture, but a timeout ceiling cannot guarantee that a particular component has rendered. In an automated workflow, wait for the specific selector, image, font, or application-ready signal your page requires before taking the screenshot. Use virtual time when the page’s behavior depends on JavaScript timers, and verify the captured output.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

Troubleshoot by symptom

Symptom Likely cause What to do
The bottom of a short, known section is missing The viewport is shorter than the area you want to show. Set a suitable --window-size=WIDTH,HEIGHT and inspect the output dimensions.
Content below the fold is missing from a long page A viewport screenshot captures only its viewport. Use a full-page API with captureBeyondViewport: true or a wrapper’s full-page option.
The screenshot does not match the print preview You captured screen layout rather than print layout. Use --print-to-pdf and inspect the page’s print CSS. Rasterize the PDF if the final deliverable must be an image.
Images or dynamic content are absent Capture occurred before that content was ready. Wait for the relevant content or application-ready condition. Treat --timeout as a maximum wait, not a readiness signal.
Chrome reports “Page is too large” The full-page image exceeds an implementation limit. Try segmented captures or PDF output; check the final file dimensions and your installed Chrome version.
Chrome rejects the PDF header/footer flag The installed version may use the older option name. Check the Chrome version and try --print-to-pdf-no-header on an older release.
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 screenshot endpoint rather than managing headless Chrome yourself, ScreenshotNeo takes a screenshot or PDF from one GET request. Its API supports full-page capture with lazy images loaded. For example, this cURL request saves a WebP screenshot of the example page:

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://example.com/ -o shot.webp

See the ScreenshotNeo API documentation for authentication and request options. Cookie banners, newsletter popups, and chat widgets are removed before capture; each cleanup step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies page verdict and billing status in headers. An MCP server provides screenshot, page-info, and PDF tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Sign up for 1,000 free screenshots a month, with no card required.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Frequently Asked Questions

Does increasing `–window-size` capture the whole page?

No. It sets the screenshot viewport dimensions. Use a full-page capture operation for content beyond that viewport.

Which Chrome output uses print CSS?

`–print-to-pdf` uses Chrome’s print pipeline. `–screenshot` captures an image of the rendered viewport unless you use a full-page capture operation.

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.

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.