docs(readme): fix page.pdf code example (#6890)

Ref: `PaperFormat` type.
This commit is contained in:
信鑫-King 2021-02-18 16:05:43 +08:00 committed by GitHub
parent f7de60be22
commit d66389ba7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
})();