I've got a watermark that I need to repeat on every page of a PDF. The source text is a div in my HTML:
<div id="all"> (outermost container)
<div id="background">
<p id="watermark">Internal Use Only - Do Not Duplicate</p>
</div>
(more divs with the content of the book)
</div>
In my CSS, I have these declarations:
#background {
position: absolute;
display: block;
top: 30mm;
left: 10mm;
bottom: 30mm;
right: 10mm;
z-index: -1;
overflow: visible;
}
#watermark {
color: cmyk(0,0,0, 0.4);
font-size: 24pt;
transform: rotate(-45deg);
}
This sort of works: the watermark is displayed on the first page of the PDF, but not on subsequent pages.
How can I get the watermark to display on every page?
I've tried various solutions, but the ones I found were all geared toward use in browsers and didn't address paged media.
I know this can be done with image watermarks, but I'd rather use text because it's a lot easier to change the text if e.g. a document gets translated.
I'm using Antennahouse to convert the HTML+CSS to PDF.