HtmlPackager.PackageHtmlToFolder

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)

Return Value

HTML string or null

Parameters

urlOrFile
A Web Url or fully qualified local file name

outputFile
Location for the output file. Folder is created if it doesn't exist. All dependencies are dumped into this folder

basePath
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.

deleteFolderContents
If true deletes folder contents first


See also:

Class HtmlPackager

© West Wind Technologies, 2016-2023 • Updated: 05/18/22
Comment or report problem with topic