I'm using headless chrome to generate a long pdf document with Python/Django.
Is there a way to remove header with date and footer with url and pages count from pages?
Tried to use
@page{
margin: 0;
size: auto;
}
but with this css there are no margins, which i need.
tried to wrap page content with div.wrapper
and style
.wrapper{
margin: 15mm 10mm 15mm 15mm;
}
but with this solution there are top and bottom margins only on first and last pages. Pages between are without vertical margins and stick to top and bottom.
read here: https://cs.chromium.org/chromium/src/headless/app/headless_shell_switches.cc there is no any special flag to launch chrome with headers and footers disabled
is there any solution to hide page header and footer, but save margins?