Hi
sorry I can't figure out how this should be formatted?
If my folder is C:\images
It doesn't work to set "C:\images" as baseuri.
I also tried to the the base Uri to file:///C:/images
I'm assuming i should write the path in a other format?
Here my SourceCode
string htmlSource = File.ReadAllText(@"C:\temp\BildMail.HTML");
byte[] data = Encoding.Default.GetBytes(htmlSource);
using (MemoryStream sourceStream = new MemoryStream(data))
{
LoadOptions htmlLoadOptions = new LoadOptions(LoadFormat.Html, "", @"C:\images");
Document doc = new Document(sourceStream);
doc.Save(@"C:\temp\bild.pdf", SaveFormat.Pdf);
}
Here the Html source
<html >
<body lang="DE" link="blue" vlink="purple">
<img width="991" height="296" id="_x0000_i1027" src="myimage.jpg">
</body>
</html>
the image is located in C:\images
Now I've put the html and image file in the same folder. And exporting still doesn't incluide the image. There I set the basepath to an empty string.
When I double click the HTML File, i can see the image in the browser
--