Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass extra arguments to chrome headless? #9

Open
mahdix opened this issue Jan 6, 2022 · 0 comments
Open

How to pass extra arguments to chrome headless? #9

mahdix opened this issue Jan 6, 2022 · 0 comments

Comments

@mahdix
Copy link

mahdix commented Jan 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant