I use the header and footer in saucer flying. It works well.
The current state works where I use the div with header or footer, I have from there until the end of the file header or footer.
I've tried this, but it doesn't work.
{ content: element(header, last-except)} or { content: element(header, first-except)}
This is my code style:
div.header {
display: block;
text-align: center;
position: running(header);
}
div.footer {
display: block;
text-align: center;
position: running(footer);
}
@page {
@top-center { content: element(header) }
}
@page {
@bottom-center { content: element(footer) }
}
HTML:
<div class="header">
</div>
I would like to have a header or footer only, for example from 2 to 5 pages of pdf. Is there a way to stop the generation on each page of the pdf?
Thanks.