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 do you manage different margins? #140

Open
dagumak opened this issue Aug 12, 2019 · 3 comments
Open

How do you manage different margins? #140

dagumak opened this issue Aug 12, 2019 · 3 comments

Comments

@dagumak
Copy link

dagumak commented Aug 12, 2019

It seems the support for @page is very choppy. Adding @page :first with a margin of 0 cuts off the text a little bit for all pages after the first. Is there a way to effectively manage different margins for different pages? For example, a magazine might have a cover page with no margins and full-page pictures next to a page with an article.

@Zulko
Copy link
Member

Zulko commented Aug 12, 2019

Unfotunately I don't think this is possible, this is a limiration on the Chrome/Chromium side, and as long as they do not support it there is not much we can do.

@dagumak
Copy link
Author

dagumak commented Aug 12, 2019

Unfotunately I don't think this is possible, this is a limiration on the Chrome/Chromium side, and as long as they do not support it there is not much we can do.

That's what I suspected, and was hoping there was some kind of workaround. Thanks anyways!

@DanielRuf
Copy link
Contributor

Which browsers support this? Puppeteer can also control Firefox.

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

3 participants