Table of Contents
AllowLocalAccess Property

Specifies whether to allow access to local files.

Syntax
 public Boolean AllowLocalAccess { get; set; }
Remarks

By default, the converter can access local files. For example, the following code would need to access local file "c:\hello.gif" in order to render the image correctly:

HtmlToPdf.ConvertHtml("<img src='c:\\hello.gif' />", pdfFile);

This can be a security risk if the converter is running on a server. In that case you should set this property to false. When this property is set to false, local access is still allowed if BaseUrl is a local path.

See Also