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.

Set landscape: true in the options passed to Puppeteer’s page.pdf() method. Here is a complete Node.js example, followed by the settings that affect page size, print styling, and readiness.

Generate a landscape PDF

Install Puppeteer in your project, then run this script. Replace the example URL with the webpage you want to capture.

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  try {
    const page = await browser.newPage();
    await page.goto('https://example.com', { waitUntil: 'networkidle2' });
    await page.pdf({
      path: 'page.pdf',
      landscape: true,
    });
  } finally {
    await browser.close();
  }
})();

The key setting is landscape: true. If you omit it, the documented default is false, so the PDF is portrait. Puppeteer’s PDFOptions reference documents the orientation and other PDF settings.

Choose the page geometry and fit

Landscape changes orientation; it does not guarantee that a webpage’s content will fit neatly on the resulting pages. Select paper dimensions and scaling based on the page and how it will be read.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0
  • format selects a named paper size. If you supply format along with width or height, format takes priority.
  • width and height let you set dimensions directly when a named format is unsuitable.
  • preferCSSPageSize: true gives the webpage’s CSS @page size priority over the API’s paper dimensions. Its default is false; by default, content is scaled to fit the selected paper size.
  • Margins are unset by default. Set them if content is too close to the edge or if you need room for printed material.
  • scale defaults to 1 and accepts values from 0.1 to 2. A lower scale may help fit wide content, but also makes text smaller.

For example, to use A4 paper in landscape with a small margin and printed background graphics:

await page.pdf({
  path: 'page.pdf',
  format: 'A4',
  landscape: true,
  margin: {
    top: '10mm',
    right: '10mm',
    bottom: '10mm',
    left: '10mm',
  },
  printBackground: true,
});

Use the dimensions and options supported by your installed Puppeteer version. When a page defines its own print page size, inspect its @page CSS and decide whether that size or your API settings should control the output.

Rank #2
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)

Control print styling and colors

page.pdf() renders using the print CSS media type. If the page’s print stylesheet hides content or changes the layout and you want its screen styles instead, emulate screen media before creating the PDF:

await page.emulateMediaType('screen');
await page.pdf({ path: 'page.pdf', landscape: true });

Printed colors may differ from screen colors because Puppeteer modifies PDF colors for printing by default. To preserve exact colors, use the CSS property -webkit-print-color-adjust, such as -webkit-print-color-adjust: exact in the page’s print styles. Set printBackground: true when the PDF also needs background graphics; it defaults to false. See the Page.pdf() reference and PDF generation guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
  • STAY ORGANIZED – Easily convert your paper documents into digital formats like searchable PDF files, JPEGs, and more.Power Consumption : 2.5W or less (Energy Saving Mode: 0.7W). Suggested Daily Volume : 500 scans..Does it contain liquid: no
  • CONVENIENT AND PORTABLE –lightweight and small in size, you can take the scanner anywhere from home offices, classrooms, remote offices, and anywhere in between
  • HANDLES VARIOUS MEDIA TYPES – Digitize receipts, business cards, plastic or embossed cards, reports, legal documents, and more
  • FAST AND EFFICIENT – No technical hurdles or complicated setups here; easily scan both sides of a document at the same time, in color or black-and-white, at up to 12 pages-per-minute, and with a 20 sheet automatic feeder
  • BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer

Wait for the page to be ready

The example uses waitUntil: 'networkidle2' as one navigation readiness condition. It is not a guarantee that every dynamic element, delayed image, or application update has finished. Choose a condition suited to the page; for content that appears later, wait explicitly for the relevant selector or application state before calling page.pdf().

Puppeteer’s PDF guide says that page.pdf() waits for fonts by default. If a page still produces missing or late content, verify that the content has loaded before capture rather than assuming navigation alone is sufficient.

Rank #4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
  • IRIScan Express, portable scanner : scans color and black and white documents a blazing speed up to 8ppm simplex. Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • IRIScan Express mobile scanner is powered via an included micro USB 2. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan. USB cable provided. AC Adapter not provided and not needed.
  • IRIScan flatbed scanner uses a simplex scanning mode allows for quick and straightforward scanning of single-sided documents. IRIScan with its full portable features is the ideal document scanners for computers.
  • IRIScan document scanner : Versatile scanning capabilities, including scanning to Word, PDF, and Excel formats with companion software provided Readiris OCR
  • Receipt scanner and card scanner with Additional features include scanning business cards directly to Outlook, photo scanning, and receipt scanning for efficient document management

page.pdf() returns a Uint8Array. Supplying path writes the resulting PDF to that file, as in the examples. The navigation call page.goto() resolves with the main resource response; it can resolve to null for about:blank or a navigation to the same URL that differs only by its hash. See the Page.goto() reference.

Troubleshoot common output problems

  • The PDF is still portrait: confirm that landscape: true is in the options object passed to page.pdf(), not only in another configuration.
  • The layout looks wrong or content is cut off: inspect the site’s print CSS and @page rules. Check whether format is overriding width and height, whether preferCSSPageSize should be enabled, and whether margins or scale need adjustment.
  • Colors or backgrounds are missing: set printBackground: true for background graphics. For exact color rendering, use -webkit-print-color-adjust: exact in the page’s CSS.
  • Dynamic content is absent: wait for the specific content or selector before generating the PDF; a navigation readiness condition may not cover later page updates.
  • Navigation to a PDF fails in headless shell: Puppeteer’s navigation documentation warns that headless shell does not support navigating to a PDF document. That limitation concerns opening a PDF with navigation, not generating a PDF with page.pdf().
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 one-request screenshot or PDF workflow, ScreenshotNeo provides a website screenshot API and MCP server. Its PDF options include paper size, margins, landscape orientation, and page ranges. For a PDF, use the API’s PDF output option; the example below demonstrates the documented GET endpoint and URL parameter for an image capture. See the ScreenshotNeo documentation for PDF parameters and output details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo can remove cookie banners, newsletter popups, and chat widgets before capture; those cleanup steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP server offers screenshot and PDF tools for AI agents. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Does Puppeteer default to landscape for PDFs?

No. The documented default for the landscape option is false.

Can I use Puppeteer’s PDF method to render screen styles?

Yes. Call page.emulateMediaType('screen') before page.pdf().

Quick Recap

SaleBestseller No. 3
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer; This product is not intended for scanning photographs on photo paper / photographic media
$153.00
Bestseller No. 4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
Find our Software here : irislink.com/start; IRIScan Express is only compatible Windows platform and not macintosh
$129.00
Bestseller No. 5
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00

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.

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.