using (Doc doc = new Doc()) {
doc.HtmlOptions.Engine = EngineType.Gecko;
doc.HtmlOptions.ForGecko.AddLinks = true;
// You can store a reference to the filter to reduce code repetition
IHtmlGeckoOptions options = doc.HtmlOptions.ForGecko;
options.AddLinks = true;
doc.AddImageUrl("http://www.websupergoo.com");
doc.Save(Server.MapPath("wsg.pdf"));
}
Using doc As New Doc()
doc.HtmlOptions.Engine = EngineType.Gecko
doc.HtmlOptions.ForGecko.AddLinks = True
' You can store a reference to the filter to reduce code repetition
Dim options As IHtmlGeckoOptions = doc.HtmlOptions.ForGecko
options.AddLinks = True
doc.AddImageUrl("http://www.websupergoo.com")
doc.Save(Server.MapPath("wsg.pdf"))
End Using