Add Watermark to Advanced PDF Template

A watermark is a text or an image that appears either in front of or behind existing document content, like a stamp. To add Watermark to an advanced PDF template define it in a macro tag so that it is included in all the pages of the template.

Sample –

 <head>

<macrolist>

<macro id=”watermark”>

<p class=”watermarkid” rotate=”-30″ align=”center” font-size=”110pt” color=”#C3C8C8″ style = “position: absolute;z-index:1000;opacity: 0.5;filter: alpha(opacity=50); left:26%”>PAID</p>

</macro>

</macrolist>

</head>

<body background-macro=”watermark” >

….

</body>

Make sure that the macro id used in the header section and body should be the same. The id can be any text. We can also use images as watermarks.

Note: If background color or shading is used for item table rows, then there is a chance to hide the watermark text behind it. Couldn’t find a solution to overlay the watermark in templates.

Leave a comment

Your email address will not be published. Required fields are marked *