Display of Watermark (Background Image) in PDF

Hello Everyone

My requirement is to generate a pdf file from html stream. I am able to generate pdf. I need to display logos and watermarks(background image)in the pdf. I am able to display Logo on top of the pdf. I am not able to display watermark(background logo) in the pdf. I tried using different piece code :
Code 1:
<body background="background-image:url("desktopimages/Test.png");">

Code 2:
<%String imageLocation= tools.findPageWithException("Declare_TestPage").getString(".ImageLocation");
String Test = imageLocation+"Test.PNG";
<body background = '<%=Test%>'>****************************************

I am not able to get the watermark in the pdf. It would be a great help if anyone of you help me in getting this. Your help is appreciated. Thanks!!


**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

March 20, 2015 - 6:13am

Hi Samanths , I also have the same problem . But I am ok with the Header , can you please help me with the header code means how you add logo in header . I am using HTMLTOPDF activity

April 6, 2015 - 10:11pm

HI samanths can you please help me how to set the header in every page.

January 19, 2016 - 3:34pm

You all might be interested in the comment thread on SA-10910: