Css 通过渲染pugin添加水印
我正在使用grails中的渲染插件创建pdf。我需要在我的pdf中添加水印(它是一个图像)。我不知道如何在里面添加水印。我在谷歌上搜索过,但使用渲染插件没有关于水印的内容。这个问题实际上与Grails或渲染插件无关。这个问题与css有关 为pdf添加Css 通过渲染pugin添加水印,css,grails,rendering,Css,Grails,Rendering,我正在使用grails中的渲染插件创建pdf。我需要在我的pdf中添加水印(它是一个图像)。我不知道如何在里面添加水印。我在谷歌上搜索过,但使用渲染插件没有关于水印的内容。这个问题实际上与Grails或渲染插件无关。这个问题与css有关 为pdf添加背景图像。以下内容将为pdf中的所有页面添加水印 @page { background-image: url("your image here"); background-repeat: no-repeat; background-
背景图像
。以下内容将为pdf中的所有页面添加水印
@page {
background-image: url("your image here");
background-repeat: no-repeat;
background-position: center;
}