HtmlPackager.PackageHtml

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 string PackageHtml(string urlOrFile,
	string basePath,
	bool createExternalFiles)

Return Value

HTML string or null

Parameters

urlOrFile
A Web Url or fully qualified local file name

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.

createExternalFiles


See also:

Class HtmlPackager

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