Free tools Windows power users keep installed
One-click scans. No signup required.
Puppeteer’s page.pdf() supports 11 named paper presets: Letter, Legal, Tabloid, Ledger, and ISO A0 through A6. Set one with format; for an unlisted size, provide width and height with units. In Puppeteer 25.12.0, format takes precedence over those dimensions, while preferCSSPageSize: true lets CSS @page control the sheet size.
Supported Puppeteer PDF paper sizes
The Puppeteer 25.12.0 PaperFormat reference lists these presets and dimensions:
As an Amazon Associate I earn from qualifying purchases.
| Preset | Dimensions (inches) | Dimensions (centimeters) |
|---|---|---|
| Letter | 8.5 × 11 | 21.59 × 27.94 |
| Legal | 8.5 × 14 | 21.59 × 35.56 |
| Tabloid | 11 × 17 | 27.94 × 43.18 |
| Ledger | 17 × 11 | 43.18 × 27.94 |
| A0 | 33.1102 × 46.811 | 84.1 × 118.9 |
| A1 | 23.3858 × 33.1102 | 59.4 × 84.1 |
| A2 | 16.5354 × 23.3858 | 42 × 59.4 |
| A3 | 11.6929 × 16.5354 | 29.7 × 42 |
| A4 | 8.2677 × 11.6929 | 21 × 29.7 |
| A5 | 5.8268 × 8.2677 | 14.8 × 21 |
| A6 | 4.1339 × 5.8268 | 10.5 × 14.8 |
Use the conventional capitalization shown in the table, such as format: 'A4' or format: 'Letter'. The type also permits uppercase, lowercase, and capitalized variants. These are PDF page dimensions supported by Puppeteer; they do not guarantee that a particular printer, tray, or print provider can handle every size.
Set a preset, orientation, and margins
Pass the desired paper preset to page.pdf(). Orientation and margins are separate settings. For example, this Node.js snippet generates an A4 portrait PDF with 12 mm margins:
#1 Best Overall
- 1 ream (500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
await page.pdf({
path: 'output.pdf',
format: 'A4',
landscape: false,
margin: {
top: '12mm',
right: '12mm',
bottom: '12mm',
left: '12mm',
},
});
landscape defaults to false. Set it to true to print the page sideways; it changes orientation rather than selecting a different preset. For example, use format: 'A4', landscape: true for landscape A4. The PDFOptions reference documents no margins as the default, so specify a margin object when the output needs them.
Use custom PDF dimensions
When none of the named presets matches the required sheet, omit format and set width and height. Each accepts a number or a string with a unit; explicit units make the intended measurements clear. For example:
Rank #2
- HP Papers is sourced from renewable forest resources and has achieved production with 0% deforestation in North America. Each ream is wrapped in a polyurethane coated paper wrapper to protect the cut sheets from moisture damage
- Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
- HP Copy&Print20 20 pounds printer paper is Forest Stewardship Council (FSC) certified and contributes toward satisfying credit MR1 under LEED (Leadership in Energy and Environmental Design)
- All HP Papers provide premium performance on HP equipment, as well as on all other printer and copier equipment; 100% satisfaction guaranteed; ColorLok technology provides more vivid colors, bolder blacks and faster drying
- Superior quality, reliability, and dependability for high-volume printing at home, at school and in the office; HP Copy&Print20 print and copy paper prevents yellowing over time to ensure a long-lasting appearance for added archival quality
await page.pdf({
path: 'custom.pdf',
width: '210mm',
height: '297mm',
});
That example supplies the dimensions directly instead of naming a preset. Do not combine it with format expecting the dimensions to win: if format is set, Puppeteer gives it precedence over width and height.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsLet CSS @page set the sheet size
For print layouts whose size is defined in CSS, declare it with @page and enable preferCSSPageSize:
Rank #3
- 3 ream case (1,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
await page.pdf({
path: 'css-sized.pdf',
preferCSSPageSize: true,
});
@page {
size: A4;
}
With preferCSSPageSize: true, the CSS page size takes priority. The option defaults to false; when it is false, Puppeteer scales content to fit the paper size specified through its PDF options. Avoid setting competing sizes in CSS and in the options unless the precedence is intentional.
Print CSS and color behavior
page.pdf() generates the PDF using the print CSS media type, as described in Puppeteer’s Page.pdf() reference. If the page should use screen styles instead, emulate that media type before generating the PDF:
Rank #4
- 5 ream case (2,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
await page.emulateMediaType('screen');
await page.pdf({ path: 'screen-styled.pdf', format: 'A4' });
Puppeteer also modifies colors for printing by default. If exact colors matter to the design, use the CSS property -webkit-print-color-adjust to force exact color rendering. Media type and color adjustments affect layout and appearance; they are separate from the selected paper dimensions.
Troubleshoot size and layout mismatches
- The PDF has the wrong dimensions: Check for
formatin the PDF options. It takes priority overwidthandheight. If CSS should control size, use@pageand setpreferCSSPageSize: true. - The page is scaled unexpectedly: With
preferCSSPageSizeleft false, Puppeteer scales content to fit the configured paper size. Enable the option when CSS@pageshould determine the physical page size. - The page is rotated unexpectedly: Check the
landscapesetting. It defaults to false; set it to true only when a sideways page is intended. - Margins are not what the layout expects: Set each side explicitly with the
marginoption. Puppeteer documents no margins as the default. - Colors or styles differ from the browser view: PDF output uses print media by default and print color adjustments can change colors. Emulate screen media when appropriate, or use
-webkit-print-color-adjustwhen exact colors are required.
Version context
The preset names, dimensions, and PDF option behavior above are from Puppeteer’s 25.12.0 API references. Its supported browsers page maps that release to Chrome for Testing 154.0.8037.57 and Firefox 156.0.1. Those browser versions are context for that documented Puppeteer release, not a guarantee about every installed package. If you use another Puppeteer version, check its matching documentation.
Best Value
- 8 ream case (4,000 sheets) of 8.5 x 11 white copier and printer paper for home or office use
- Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
- Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
- Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
- Virgin copy paper providing professional quality results; acid-free to prevent yellowing
Or skip the browser setup
If your task is to capture a web page rather than build a Puppeteer PDF workflow, ScreenshotNeo is a website screenshot API and MCP server. Its API can return a screenshot or PDF with one GET request. For example, save a PDF by requesting the documented PDF output option as described in the ScreenshotNeo API docs; here is the standard one-call screenshot request:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers indicate the page verdict and billing status. Its MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Frequently Asked Questions
Does Puppeteer support US Letter and A4?
Yes. Both are named presets: use format: 'Letter' or format: 'A4'.
Are Tabloid and Ledger the same orientation?
No. Puppeteer lists Tabloid as 11 × 17 inches and Ledger as 17 × 11 inches.
Quick Recap
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.




