You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to use a static image as watermark when printing a pdf from a django template. How can I do it using django-wkhtml2pdf?
I was trying using the following code, but the document has several pages and the background does not apply to every page individually. Instead it tries to apply the background to the whole document, and as a result the images takes a bigger size, covering all pages. How can I apply the image as a background to every page individually? Here is my code:
Defining a background using CSS
body { background-image: url("{{ watermark_logos }}"); background-size: cover; }
Generating a pdf with django-wkhtml2pdf. Note that the "cmd_options" represent the parameters for wkhtmltopdf
I need to be able to use a static image as watermark when printing a pdf from a django template. How can I do it using django-wkhtml2pdf?
I was trying using the following code, but the document has several pages and the background does not apply to every page individually. Instead it tries to apply the background to the whole document, and as a result the images takes a bigger size, covering all pages. How can I apply the image as a background to every page individually? Here is my code:
body { background-image: url("{{ watermark_logos }}"); background-size: cover; }
Here is the watermark I want to use for every page
The text was updated successfully, but these errors were encountered: