Packages an HTML document into a file with all dependencies dumped into the file's output folder and adjusted for the same local path.
public bool PackageHtmlToFolder(string urlOrFile, string outputFile, string basePath, bool deleteFolderContents)
HTML string or null
A Web Url or fully qualified local file name
Location for the output file. Folder is created if it doesn't exist. All dependencies are dumped into this folder
An optional basePath for the document which helps resolve relative paths. Unless there's a special use case, you should leave this value blank and let the default use either the value from a BASE tag or the base location of the document.
If the document itself contains a BASE tag this value is not used.
If true deletes folder contents first
See also:Class HtmlPackager
Comment or report problem with topic