Skip to content

How to pass extra arguments to chrome headless? #9

@mahdix

Description

@mahdix

I'm trying to set window size when printing, but it seem it is not working.

I run: docker run -v "$(pwd):/workspace" pink33n/html-to-pdf --url http://google.com --window-size=1920,1080 --pdf out.pdf

But the generated pdf file is still cropped which indicates a small screen size in headless.

P.S: This also did not help: docker run -v "$(pwd):/workspace" pink33n/html-to-pdf --url http://google.com --pdf out3.pdf --window-size 3600,1200

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