markdown-pdf icon indicating copy to clipboard operation
markdown-pdf copied to clipboard

How can I put a watermark image on every page?

Open biofractal opened this issue 10 years ago • 6 comments

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

biofractal avatar Oct 06 '15 09:10 biofractal

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.

anko avatar Oct 06 '15 15:10 anko

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.

biofractal avatar Oct 06 '15 20:10 biofractal

Clarifying: The position: fixed trick did not work for me.

Narrating the gist which demonstrates how a solution could have looked:

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.

anko avatar Oct 07 '15 16:10 anko

Now that was clear :-)

I will give your idea a go and see what happens. Its got to work - surely.

Thanks

biofractal avatar Oct 07 '15 20:10 biofractal

@biofractal did you resolve your issue?

alanshaw avatar Jan 29 '16 12:01 alanshaw

So, what is the conclusion here please? Is it possible or not?

igasparetto avatar Nov 22 '18 14:11 igasparetto