Skip to content

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

@jchaney

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().

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