Watermark Question

Watermark Question

Forum member · May 21, 2014
Hello: I was wondering how to configure the custom watermark to alter where it looks for the image. For example in my code, the line: ceTe.DynamicPDF.PageElements.Image image = new ceTe.DynamicPDF.PageElements.Image("watermark.png", 0,0,1); somehow defaults to 'c:\windows\system32\inetsrv\ I was wondering how to change that so I don't have images in strange directories I don't usually go into. THanks

Re: Watermark Question

Support · May 22, 2014
Hello, The Image page element takes the file path to access the image and please make sure that you are using correct file path for the image to load it. You can access the images using relative path in your web application (Server.MapPath(“relative path for the image”)). Also you can refer to the samples (AllPageElements and ImageWithAltText) included with the evaluation download where the images are accessed using relative paths. Thanks, ceTe Software Support Team.