【问题标题】:add watermark through rendering pugin通过渲染插件添加水印
【发布时间】:2013-05-30 05:17:44
【问题描述】:

我正在使用 grails 中的渲染插件创建 pdf。我需要在我的 pdf 中添加水印(它的图像)。我不知道如何在其中添加水印。我在谷歌上搜索,但使用渲染插件没有关于水印的内容。

【问题讨论】:

    标签: css grails rendering


    【解决方案1】:

    这个问题实际上与 Grails 或 Rendering 插件无关。问题与css 有关。

    在 pdf 的样式中添加 background-image。下面将为pdf中的所有页面添加水印。

    @page {
       background-image: url("your image here");
       background-repeat: no-repeat;
       background-position: center;
    }
    

    【讨论】:

      猜你喜欢
      • 2019-06-12
      • 2013-01-14
      • 2012-03-10
      • 1970-01-01
      • 2012-12-24
      • 1970-01-01
      • 2011-05-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多