Table of Contents
BaseUrl Property

Gets or sets the base Url when converting HTML text.

Syntax
 public String BaseUrl { get; set; }
Remarks

Base Url specifies an explicit URL used to resolve links and references to external sources such as images and style sheets. while converting HTML text. For example, the following code convert EO logo:

//Set BaseUrl so we do not need to specify the full
//Url in the HTML to be converted
EO.Pdf.HtmlToPdf.Options.BaseUrl = "http://www.essentialobjects.com/images/";

//Convert HTML. Note the img's src attribute does
//not contain the full Url
EO.Pdf.HtmlToPdf.ConvertHtml("<img src='logo.gif' />", "eo_logo.pdf");
This property is only used by HtmlToPdf.ConvertHtml. It is ignored when converting Url.

This property is automatically cleared after each conversion.

See Also