Skip to content

Commit

Permalink
docs(readme): fix page.pdf code example (#6890)
Browse files Browse the repository at this point in the history
Ref: `PaperFormat` type.
  • Loading branch information
ycjcl868 committed Feb 18, 2021
1 parent f7de60b commit d66389b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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();
})();
Expand Down

0 comments on commit d66389b

Please sign in to comment.