DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How to Render a Webpage to PDF with Landscape Pages

Set Landscape in your browser’s print dialog for a one-off PDF, use print CSS on pages you control, or automate landscape PDFs with Playwright.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a one-off PDF, open the webpage’s print dialog, choose Landscape for orientation, then select Save as PDF or the equivalent destination. If you control the page, use CSS @page and @media print; for repeatable automation, Playwright’s page.pdf() accepts a landscape option.

Choose the method that fits

Situation Best starting point What you control
One webpage, no code Browser print dialog Orientation and other print-dialog settings
You can edit the webpage Print CSS with @page and @media print Page orientation, margins, and which elements appear
You need repeatable PDF generation Playwright page.pdf() Orientation, paper format, margins, scale, and background printing

Save a webpage as a landscape PDF in a browser

  1. Open the webpage you want to save.
  2. Open the browser’s print dialog using its Print command.
  3. Set the page orientation to Landscape.
  4. Choose Save as PDF or the browser’s equivalent PDF destination.
  5. Check the preview, including page breaks and scaling, then save the PDF.

Browser labels and dialog layouts vary. The essential setting is the print dialog’s own orientation choice; changing the screen window’s shape does not set the PDF page orientation.

As an Amazon Associate I earn from qualifying purchases.

Set landscape pages with CSS

If you control the page, the CSS @page at-rule can specify printed page size, orientation, and margins. MDN describes @page as a way to modify aspects of printed pages: MDN: @page CSS at-rule.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
@page {
  size: landscape;
  margin: 2cm;
}

@media print {
  .navigation,
  .screen-only-control {
    display: none;
  }
}

The @page rule sets landscape orientation and a 2 cm margin. The print-only rules hide elements that are useful on screen but not in the PDF. Put print-specific layout changes in @media print or a print stylesheet; see MDN: Printing – CSS.

#1 Best Overall
11" x 17" Blank Print Paper, 45Sheets/90Pages Blank Loose-Leaf Paper, Ledger Size Printing in Office, 100gsm Blank Paper
  • BLANK PAPER - 17" x 11" printer and copying paper works as hard as you do, work great for writing and drawing, note taking.
  • 45 SHEETS - This white recycled printer paper with 45 sheets/90 pages per pack, improve your productivity with this daily organizer.
  • Unpunched Paper - If you are looking for a convenient blank paper for your organizer, planner, notebook, and need to customize the type of holes you’re punching, this paper is perfect for just that.
  • HIGH QUALITY - Ledger Size Copying paper is used to high quality 100gsm pure white premium acid-free paper, so you can confidently use most pens, pencils, and markers without ghosting and bleed-through.
  • PERFECT FOR - Refill blank paper inserts works perfectly with binder notebook planner, ideal for bullet journaling, creative writing, work records, meeting record, class notes, travel diary, poem writing, doodles, project notebook for work, home or school

Generate a landscape PDF with Playwright

Playwright’s page.pdf() renders with print CSS media. Pass landscape: true to request landscape orientation. The following is a complete Node.js example using Playwright’s documented API; install Playwright and its browser before running it.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();

  await page.goto('https://example.com', { waitUntil: 'networkidle' });
  await page.pdf({
    path: 'page.pdf',
    landscape: true,
    format: 'A4',
    printBackground: true,
  });

  await browser.close();
})();

Replace https://example.com with the target page. This example requests A4 landscape pages and prints background graphics. Playwright documents the available options, including paper formats and CSS page-size handling, in its Page API reference.

Rank #2
Sale
Hammermill Printer Paper, 20 lb Copy Paper, 8.5 x 14-1 Ream (500 Sheets) - 92 Bright, Made in the USA
  • HAMMERMILL’S BEST SELLING PRINTER PAPER – You will receive one ream of paper with 500 sheets of 20lb, 92 bright, 8.5" x 14" white copy paper. Legal Size
  • 99.99% JAM-FREE PRINTER PAPER - Everyone hates paper jams...You can trust Hammermill paper quality to keep your printer running smoothly. Scroll down to view the Product Description for details
  • COLORLOK TECHNOLOGY INCLUDED - Colors on Hammermill copy paper are 30% brighter; blacks are up to 60% bolder and inks dry 3 times faster for less smearing.
  • Hammermill copying and printing papers are 100% made in the USA, helping to support 2. 4 million sustainable forestry jobs in America, including family tree farmers. Hammermill is more than just paper

Choose between API dimensions and CSS page size

Use format (or explicit width and height) when the script should determine the paper size. If the page’s CSS @page declaration should take priority over the PDF API’s format or dimensions, set preferCSSPageSize: true. Keep landscape: true when you want the API to request landscape orientation.

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

Set margins, scale, and backgrounds deliberately

  • Paper: Playwright defaults to Letter when format is omitted. Choose an appropriate format, such as A4, Letter, Legal, Tabloid, or Ledger.
  • Margins: Playwright documents margins as defaulting to none. Specify them if content needs breathing room or risks reaching page edges.
  • Scale: Playwright’s supported scale range is 0.1 to 2. Adjust scale if content does not fit, but avoid shrinking text so much that it becomes hard to read.
  • Backgrounds: printBackground defaults to false. Set it to true when the PDF should retain background colors or images.

Fix common landscape PDF problems

  • The PDF is still portrait: In a browser, check the print dialog’s orientation setting. For CSS, confirm the @page rule is loaded for print. In Playwright, pass landscape: true, or use CSS page sizing with preferCSSPageSize: true when the CSS size should take precedence.
  • Content is clipped or too small: Review paper format, margins, and scale. Landscape orientation alone cannot make an overly wide layout fit legibly. Choose a suitable paper size and adjust print styles before reducing scale substantially.
  • The PDF shows the screen layout: Add or correct print-specific rules in @media print, or use a print stylesheet to hide navigation and other screen-only elements.
  • Background colors or images are missing in Playwright: Enable printBackground: true; its default is false.
  • Colors differ in Playwright output: PDF printing modifies colors by default. Playwright’s documentation points to -webkit-print-color-adjust when exact color rendering is needed.
  • CSS page rules behave differently across browsers: MDN marks @page as Baseline 2024 and cautions that older devices or browsers may not support every part consistently. Test the browser you intend to use.

Or skip the browser setup

If your goal is a clean screenshot or PDF from a URL rather than controlling browser print layout, ScreenshotNeo can return a PDF with one GET request. For example, this cURL request saves a PDF response:

Rank #3
Hammermill Printer Paper, 20 lb Copy Paper, 8.5 x 11-3 Ream (1,500 Sheets) - 92 Bright, Made in the USA
  • HAMMERMILL’S BEST SELLING PRINTER PAPER – You will receive one carton of copy paper, which includes 3 individual reams of paper inside. Each ream of paper has 500 sheets of 20 pounds, 92 bright, 8.5" x 11" white copy paper
  • 99.99% JAM-FREE PRINTER PAPER - Everyone hates paper jams. You can trust Hammermill paper quality to keep your printer running smoothly. Scroll down to view the product description for details
  • COLORLOK TECHNOLOGY INCLUDED - Colors on Hammermill copy paper are 30% brighter; Blacks are up to 60% bolder and inks dry 3 times faster for less smearing.
  • Hammermill copying and printing papers are 100% made in the USA, helping to support 2. 4 million sustainable forestry jobs in America, including family tree farmers. Hammermill is more than just paper
curl -G "https://api.screenshotneo.com/v1/shot" 
  -d access_key=YOUR_API_KEY 
  --data-urlencode url=https://stripe.com 
  -d format=pdf 
  -o page.pdf

See the ScreenshotNeo API documentation for PDF options, including paper size, margins, landscape orientation, and page ranges. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. Its MCP server gives AI agents tools to take screenshots and capture PDFs. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000.

Sign up for ScreenshotNeo’s free plan.

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

Frequently Asked Questions

Does landscape orientation make every webpage fit on one PDF page?

No. Paper size, margins, scale, page breaks, and print-specific layout also affect fit; landscape alone does not guarantee a single page.

Can I set a custom paper size in Playwright?

Yes. Playwright’s PDF API supports paper formats as well as width and height dimensions; use `preferCSSPageSize: true` if the page’s CSS `@page` size should take priority.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
8.5" x 14" Printer Paper - 50 Sheets/100 Pages Blank Paper, 100Gsm Copy Papers, Legal Size Printing in Office/School/Home
  • PRINTER PAPER - 8.5" x 14" printer and copy paper great for writing and drawing, note taking.
  • HIGH QUALITY - Legal size copying paper is used to high quality 100gsm pure white premium acid-free paper, so you can confidently use most pens, pencils, and markers without ghosting and bleed-through. You won't have to worry about smeared ink or illegible print with this premium paper product.
  • 50 SHEETS - This blank recycled printer paper with 50 sheets/100 pages per pack, convenient to record your work and study
  • UNPUNECHED BLANK PAPER - If you are looking for a convenient printer copy paper for your organizer, planner, notebook, and need to customize the type of holes you’re punching, this blank paper is perfect for just that.
  • PERFECT FOR - White copy paper perfectly with binder notebook planner, ideal for bullet journaling, creative writing, work records, meeting record, class notes, travel diary, poem writing, doodles, project notebook for work, home or school
Rank #4
PrintWorks 100% Recycled Printer Paper 8.5" x 11" White - 20 lb Copy & Multipurpose Computer Paper - 1 Pack, 400 Sheets - Made in the USA - 92 Bright - Printer & Copier Compatible (00018)
  • 100 percent post-consumer recycled printer paper for everyday use at an affordable price
  • Made in the USA from recycled food and beverage containers and other paper-based printed materials
  • 400 Sheets, 8.5" x 11", 20 lb., 92 bright white for better contrast and color reproduction, poly wrapped for package durability
  • Perfect for printing reports, presentations, manuals, school projects and more

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.