Hi
I'm trying to produce a watermark in the middle of my page using the prince-overlay, so I have:
And then I have CSS to set the element:
and in the html I have the first element in the <body> as:
The watermark appears nicely, but I'm getting an extra blank page at the front of the PDF.
I read in your docs that "Any block-level element can be removed from the normal flow and placed in a page region." but it doesn't seem to be getting fully removed.
I've tried moving the div#watermark a bit further into the the document and I seem to get an extra page where ever its positioned.
I've tried removing the <p> element so its just plain text content, but no change. I've checked that the div is being set to display: block.
Any ideas?
I'm trying to produce a watermark in the middle of my page using the prince-overlay, so I have:
@page {
@prince-overlay {
content: element(watermark_text);
}
}
And then I have CSS to set the element:
#watermark {
font: arial, sans-serif;
color: rgba(0,0,0,0.1);
text-align: center;
font-size: 60pt;
transform: rotate(-30deg);
position: running(watermark_text)
}
and in the html I have the first element in the <body> as:
<div id="watermark">
Imfuna Free Trial
<p>Not for commercial use</p>
</div>
The watermark appears nicely, but I'm getting an extra blank page at the front of the PDF.
I read in your docs that "Any block-level element can be removed from the normal flow and placed in a page region." but it doesn't seem to be getting fully removed.
I've tried moving the div#watermark a bit further into the the document and I seem to get an extra page where ever its positioned.
I've tried removing the <p> element so its just plain text content, but no change. I've checked that the div is being set to display: block.
Any ideas?