Rank: Member Groups: Member
Joined: 7/11/2013 Posts: 10
|
The docs explain the low level functions that can add a watermark. But I can't quite figure out how to do this right when I am converting an HTML doc to a PDF using EO.Pdf.HtmlToPdf.ConvertHtml. The text I want to add comes out as a "rubber stamp" -- appearing on top of the HTML document -- instead of behind it.
Any suggestions?
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Please check if you are handling HtmlToPdfOptions.BeforeRenderPage event. If you add the watermark after ConvertHtml, or inside AfterRenderPage handler, then it will come out as rubber stamp. Also when you use watermark, the HTML page has to be transparent --- for example, if you have a solid background color on your body element, then that will block the watermark and the watermark won't be visible.
If the problem continues, please try to isolate the problem into a small test page and post the test page. Once we have that we will try to run it here and see what we can find.
Thanks!
|