Skip to content

How to set page.emulateMedia('screen')?  #3

Description

@jchaney

Is there some way to set this so I can get the non print styled version of the page? According to the API reference for Pyppeteer:

pdf() generates a pdf of the page with print css media. To generate a pdf with screen media, call page.emulateMedia('screen') before calling pdf().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions