[C#]
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")); [Visual Basic]
Dim theDoc As Doc =
New Doc() theDoc.HtmlOptions.Engine =
EngineType.Gecko theDoc.HtmlOptions.ForGecko.AddLinks =
True
' You can store a reference to the filter to
reduce code repetition Dim theOptions As IHtmlGeckoOptions =
theDoc.HtmlOptions.ForGecko
theOptions.AddLinks =
True
theDoc.AddImageUrl("http://www.websupergoo.com") theDoc.Save(Server.MapPath("wsg.pdf")) |