You need to sign in to do that
Don't have an account?
priya123
Watermarking in PDF
Hi, I am creating a pdf document using VF.In this pdf, i m placing the image in the first page.In addition to this, i have to make the image as watermark in the document.So i dont know how to give the watermark for the image using css...If anyone knows about this pls share.. Thanks, Priya
Hi,
I had a similar problem and found a way to display the watermark with text over the top. It's not ideal but might be a workwround you can use. In your first line of the html of the page use:
<img src="{!URLFOR($Resource.TrainingCertificates, 'Background.JPG')}" style="position: fixed; left: 0cm; top:0cm; z-index:-1" width="21cm" height="29.7"/>
I stored the images in static resources (has to be in a zip file). The $Resource. references the folder name and the "Backgroung.JPG" is the image name. The image name is case sensitive (even to the JPG or jpg) - it won't display if you get the case wrong.
Hopethis helps. I'd still like a nicer solution to this!