I have css for print as simple as this:
@page {
@top-left {
content: "TOP SECRET";
color: red
}
@bottom-center {
content: counter(page);
font-style: italic
}
}
But the Chrome print preview and save to pdf seems not to recognize this at all. How can I correctly set the header and footer when priting?
EDIT: @page
is supported by none ref
However, do I have other choice to do this. I'm not working on websites. The product wants a pdf as result only. I can accept chrome
, webkit
, plantomjs
etc.