ReLaXed icon indicating copy to clipboard operation
ReLaXed copied to clipboard

How do you manage different margins?

Open dagumak opened this issue 4 years ago • 3 comments

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.

dagumak avatar Aug 12 '19 12:08 dagumak

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.

Zulko avatar Aug 12 '19 12:08 Zulko

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!

dagumak avatar Aug 12 '19 12:08 dagumak

Which browsers support this? Puppeteer can also control Firefox.

DanielRuf avatar Aug 12 '19 18:08 DanielRuf