Skip to content

Commit

Permalink
docs(api.md): Added cutoff values for scale option in page.pdf functi…
Browse files Browse the repository at this point in the history
…on (#3201)

Added the cutoff values for the scale option in the page.pdf function call. Numbers based on chrome's warning message.
  • Loading branch information
jsfeldman authored and aslushnikov committed Sep 5, 2018
1 parent e07567f commit 3364659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -1411,7 +1411,7 @@ Page is guaranteed to have a main frame which persists during navigations.
#### page.pdf(options)
- `options` <[Object]> Options object which might have the following properties:
- `path` <[string]> The file path to save the PDF to. If `path` is a relative path, then it is resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). If no path is provided, the PDF won't be saved to the disk.
- `scale` <[number]> Scale of the webpage rendering. Defaults to `1`.
- `scale` <[number]> Scale of the webpage rendering. Defaults to `1`. Scale amount must be between 0.1 and 2.
- `displayHeaderFooter` <[boolean]> Display header and footer. Defaults to `false`.
- `headerTemplate` <[string]> HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:
- `date` formatted print date
Expand Down

0 comments on commit 3364659

Please sign in to comment.