Rank: Member Groups: Member
Joined: 2/21/2013 Posts: 12
|
I have a web application (asp.net MVC) that passes css and html to the HtmlToPdf.ConvertHtml method and seems to be working very nicely in my development environment (Visual Studio 200). However, the library does not seem to be producing the images from my webpage (only a few primarily just a logo).
Do I need to place the webpage images in a certain location. I tried the project's bin directory where Eo.pdf.dll exists without any luck. Currently, all webpage images are located in the following directory: '/Content/images'. I access them in the webpage using an absolute path.
<img src="/Content/images/imgname.png" alt="title" />
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You need to set HtmlToPdf.Options.BaseUrl correctly.
Thanks!
|
Rank: Member Groups: Member
Joined: 2/21/2013 Posts: 12
|
Thanks so much that worked :)
|