Welcome Guest Search | Active Topics | Sign In | Register

Add watermark during an HTML conversion Options
Ron
Posted: Thursday, July 11, 2013 10:31:38 AM
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!
eo_support
Posted: Thursday, July 11, 2013 12:04:03 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.