-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is watermark possible in pdf? #698
Comments
But want to implement a watermark this library (html-pdf) |
What came to my mind is setting an element in the header/footer and styling it so that it fills the whole page, that would be possible by rotating the element. I think you are going to need absolute positioning of the element and setting the z-index of the element smaller than all the other elements on the page. But I have no idea whether that would work. |
I don't know if this can to help you, but I had a similar require few months ago; I fixed it adding to the body a background-image, the rest is just design and css -try and error-, of course the image have an alpha and I tried a lot of css combination to achive a good result:
Another way is to repeat the same idea but adding the image with absolute position to the header div with id="pageHeader" (it will be repeat in all new page on the document), This works for me too, but the only inconvinent is this: the image is cutted at the end of the document. This is not the most elegant solution but it works :) good luck! |
I tried to make a watermark on every page. But did not able to make a watermark. How can I get a watermark in pdf generation?
The text was updated successfully, but these errors were encountered: