Packages an HTML document into a large single file package that embeds all images, css, scripts, fonts and other url() loaded entries into the HTML document.

The result is a very large document that is fully self-contained

public bool PackageHtmlToFile(string urlOrFile,
	string outputFile,
	string basePath,
	bool createExternalFiles)

Return Value

HTML string or null


A Web Url or fully qualified local file name

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.


See also:

Class HtmlPackager

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