Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlSiteBundle

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

A bounded ZIP website snapshot with an inert HTML root and archive-owned resource bytes. Loading does not extract files, execute scripts or fetch resources from the host or network.

Inheritance

  • Object
  • HtmlSiteBundle

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public HtmlRenderRequest CreateRenderRequest(HtmlRenderRequest request) #
Returns: HtmlRenderRequest

Snapshots a display-list, SVG or raster request with archive-first resources. Any explicitly supplied resolver remains the fallback, subject to the renderer's URL and byte limits. PDF callers use the owning PDF adapter so its embedded-package policy also applies.

Parameters

request OfficeIMO.Html.HtmlRenderRequest requiredposition: 0
public HtmlRenderResourceResolver CreateResourceResolver() #
Returns: HtmlRenderResourceResolver

Creates a resolver serving only archive snapshots. It never reads local or remote files.

Load 2 overloads
public static HtmlSiteBundle Load(String path, HtmlSiteBundleOptions options = null, HtmlConversionDocumentOptions htmlOptions = null, CancellationToken cancellationToken = default) #
Returns: HtmlSiteBundle

Loads a ZIP site bundle from a file, without extracting it.

Parameters

path System.String requiredposition: 0
options OfficeIMO.Html.HtmlSiteBundleOptions = null optionalposition: 1
htmlOptions OfficeIMO.Html.HtmlConversionDocumentOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public static HtmlSiteBundle Load(Stream stream, HtmlSiteBundleOptions options = null, HtmlConversionDocumentOptions htmlOptions = null, CancellationToken cancellationToken = default) #
Returns: HtmlSiteBundle

Loads a ZIP site bundle from a caller-owned stream. Seekable input is read from the beginning and its original position is restored; nonseekable input is read forward.

Parameters

stream System.IO.Stream requiredposition: 0
options OfficeIMO.Html.HtmlSiteBundleOptions = null optionalposition: 1
htmlOptions OfficeIMO.Html.HtmlConversionDocumentOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
LoadAsync 2 overloads
public static async Task<HtmlSiteBundle> LoadAsync(String path, HtmlSiteBundleOptions options = null, HtmlConversionDocumentOptions htmlOptions = null, CancellationToken cancellationToken = default) #
Returns: Task<HtmlSiteBundle>

Asynchronously loads a ZIP site bundle from a file, without extracting it.

Parameters

path System.String requiredposition: 0
options OfficeIMO.Html.HtmlSiteBundleOptions = null optionalposition: 1
htmlOptions OfficeIMO.Html.HtmlConversionDocumentOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
public static async Task<HtmlSiteBundle> LoadAsync(Stream stream, HtmlSiteBundleOptions options = null, HtmlConversionDocumentOptions htmlOptions = null, CancellationToken cancellationToken = default) #
Returns: Task<HtmlSiteBundle>

Asynchronously loads a ZIP site bundle while leaving the caller's stream open and restoring its original position when seekable.

Parameters

stream System.IO.Stream requiredposition: 0
options OfficeIMO.Html.HtmlSiteBundleOptions = null optionalposition: 1
htmlOptions OfficeIMO.Html.HtmlConversionDocumentOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3

Properties

public HtmlConversionDocument HtmlDocument { get; } #

Parsed HTML entry document.

public String EntryPath { get; } #

Selected normalized, case-sensitive HTML entry path.

public Uri ArchiveBaseUri { get; } #

Virtual directory URI that maps archive paths.

public Uri BaseUri { get; } #

Virtual URI of the selected HTML entry.

public IReadOnlyList<String> EntryNames { get; } #

Regular-file entry names in ordinal order.

public Int64 ArchiveBytes { get; } #

Encoded ZIP size observed when loading.

public Int64 DecodedBytes { get; } #

Combined decoded size of all regular-file entries.