Type Default Value Read Only Description
[C#]
IHtmlGeckoOptions

[Visual Basic]
IHtmlGeckoOptions
n/a Yes An object that provides access to only the HTML options supported by the Gecko HTML engine.

 

   

Notes
 

The HTML options supported by the Gecko HTML engine.

Supported methods

Supported properties

The HttpAdditionalHeaders property is supported under some circumstances but because these are unusual it is not included in this interface. For details see the documentation for this property.

 

   

Example
 

[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"))