Skip to content

Commit

Permalink
docs(api): update another emulateMediaType example (#5607)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshamg committed Apr 8, 2020
1 parent fefa8ca commit 21c2d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -1676,7 +1676,7 @@ Page is guaranteed to have a main frame which persists during navigations.

> **NOTE** Generating a pdf is currently only supported in Chrome headless.
`page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call [page.emulateMedia('screen')](#pageemulatemediamediatype) before calling `page.pdf()`:
`page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call [page.emulateMediaType('screen')](#pageemulatemediatypetype) before calling `page.pdf()`:

> **NOTE** By default, `page.pdf()` generates a pdf with modified colors for printing. Use the [`-webkit-print-color-adjust`](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-print-color-adjust) property to force rendering of exact colors.
Expand Down

0 comments on commit 21c2d31

Please sign in to comment.