Class HtmlPackager

A utility class that can package HTML and all of its dependencies into either a single file with embedded text and binary resources, or into a self contained folder that holds the HTML plus its external dependencies.

System.Object
  Westwind.HtmlPackager.HtmlPackager
public class HtmlPackager : object

Class Members

MemberDescription

Constructor

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.

public string PackageHtml(string urlOrFile,     string basePath,     bool createExternalFiles)

PackageHtmlToFile

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.

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

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)

PackageHtmlToZipFile

Packages HTML files to a zip file.

public bool PackageHtmlToZipFile(string urlOrFile,     string outputZipFile,     string basePath)

ErrorMessage

OutputPath

The output path where the result HTML file is to be created. If creating external depedendencies, the dependencies are dumped into the same folder

SourceUrlOrFile

A Url or File to load for packaging

Requirements

Namespace: Westwind.HtmlPackager
Assembly: markdownmonster.exe

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