首页 > 解决方案 > 在 netsuite 高级 pdf 中添加背景图像

问题描述

我正在尝试更改在高级 pdf 模板打印上添加的背景图像的不透明度。背景图像被应用但我无法更改不透明度,因为我无法应用 css ...

 body{
        background-image:url("https://system.eu2.netsuite.com/core/media/media.nl?id=11&c=4667350&h=158ccc0fb10e81fb87dc");
     }

标签: netsuite

解决方案


Could you please try this
BACKGROUND-MACRO attribute
Type:   macro
Inherited:  no
Used By:    body, pbr and the #page CSS elements
Default:    none
See:    footer header rotate
The background-macro attribute specifies a macro to apply to each page first before the content is applied. More flexible than header and footer, the macro is effectively a DIV covering the whole page (including the header and footer), and can be used to add anything from watermarks to hole-punch guides.

This places a "Confidential" stamp on each page, rotated at 45% counter-clockwise


 <head>
<macrolist>
  <macro id="watermark">
    <p rotate="-45" font-size="48pt">
      Confidential
    </p>
  </macro>
</macrolist>
</head>
<body background-macro="watermark">
<p><!--Content--></p>
</body>

推荐阅读