From 4da4d6638bb4a15da1611cc6940591e2da816e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=A1=E9=91=AB-King?= Date: Tue, 16 Feb 2021 02:26:55 -0800 Subject: [PATCH] docs(readme): page.pdf format using a4 `format` property of the `page.pdf` method was `a4` not `A4`. ref: `PaperFormat` type --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2b7ed55a3d3b..23b98375a51f2 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ const puppeteer = require('puppeteer'); await page.goto('https://news.ycombinator.com', { waitUntil: 'networkidle2', }); - await page.pdf({ path: 'hn.pdf', format: 'A4' }); + await page.pdf({ path: 'hn.pdf', format: 'a4' }); await browser.close(); })();