在Netsuite Advanced pdf中添加背景图片

时间:2018-10-25 09:00:56

标签: netsuite

我正在尝试更改添加在高级pdf模板打印上的背景图像的不透明度。虽然已应用了背景图像,但由于无法应用css而无法更改不透明度...

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

1 个答案:

答案 0 :(得分:0)

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>