How can I put a watermark image on every page?
Hi
I am successfully using this package and I think it great.
I have now been told that:
PDF content must have DRM (watermarks, social stamps) to ensure that the IP of content is protected.
I have some text available for each document that represents a copyright statement along the lines of:
copyright:'© My Group Publishing Limited'
Have you any idea how I would go about achieving this?
Thanks
First try: using the position: fixed trick for putting an element on every page when printed didn't work… here's the gist anyway in case it's useful.
Thanks for the response.
I must confess I didn't really understand, did this position:fixed trick not work for you? I took a look at you gist but it was for html not markdown. Sorry if I am being a newb but I would really appreciate some clarification.
Clarifying: The position: fixed trick did not work for me.
Narrating the gist which demonstrates how a solution could have looked:
- The generation of the PDF happens here, with
markdown-pdfbeing passed--remarkable-options '{\"html\":true}'to enable parsing of inline HTML from the Markdown input. - The first few lines of
doc.mdare HTML, specifying adiv-element with anidattribute, and the text that should be contained in the watermark. (This was done because there is no way of expressing adivelement just in Markdown, and we need a way to refer to the watermark specifically, to style it.) - The custom.css file then selects for the
div'sidand sets it to be positioned in a fixed position, 20% downward, and 50% across the page.
I was expecting to happen is for the div containing the watermark text to be floating in the middle of each page, above everything else. The idea was to then to add opacity: 0.2 to the watermark's CSS, to make it mostly transparent.
What actually happens is that it doesn't appear at all. I can't explain why, but maybe this is something to start from.
Now that was clear :-)
I will give your idea a go and see what happens. Its got to work - surely.
Thanks
@biofractal did you resolve your issue?
So, what is the conclusion here please? Is it possible or not?