Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlConversionDocumentOptions

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Options for building the shared OfficeIMO HTML conversion document.

Inheritance

  • object
  • HtmlConversionDocumentOptions

Usage

Explore 9 API references to this type

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

Accepted by parameters 6

Constructors

public HtmlConversionDocumentOptions() #

Methods

public HtmlConversionDocumentOptions Clone() #

Creates an independent options snapshot that can be safely adjusted for one load operation.

public static HtmlConversionDocumentOptions CreateTrustedProfile() #

Creates compatibility-oriented defaults for caller-trusted HTML.

public HtmlResourcePipelineOptions ToResourcePipelineOptions() #

Creates a resource-pipeline options snapshot from this conversion-document configuration.

Properties

public IHtmlParserProvider ParserProvider { get; set; } #

Inert parser supplying the document contract. The current provider is retained by default.

public IHtmlEncodingProvider InputEncodingProvider { get; set; } #

Charset labels used when loading source HTML bytes. Explicit encodings override sniffing. External resource decoders use their own configured/default provider.

public static HtmlConversionDocumentOptions UntrustedDefaults { get; } #

Creates bounded, web-only options for untrusted HTML. They match the defaults.

public HtmlConversionProfile Profile { get; set; } #

Conversion profile the document should advertise to downstream adapters.

public HtmlInputTrust Trust { get; set; } #

Caller-assigned input trust boundary. This is independent from the semantic or visual fidelity profile.

public Uri? BaseUri { get; set; } #

Optional base URI used for URL normalization and resource planning.

public HtmlUrlPolicy UrlPolicy { get; set; } #

URL policy used for hyperlinks, navigation targets, and normalized HTML output.

public HtmlUrlPolicy ResourceUrlPolicy { get; set; } #

Separate URL policy for images, stylesheets, fonts, media, and other non-navigation resources.

public HtmlConversionLimits Limits { get; set; } #

Shared limits applied before logical, style, resource, normalization, or adapter work.

public bool UseBodyContentsOnly { get; set; } #

When true, logical analysis and normalized output use body contents as the conversion root.

public bool IncludeNormalizedHtml { get; set; } #

When true, the builder emits a normalized HTML representation alongside the source HTML.

public HtmlNormalizationOptions NormalizationOptions { get; set; } #

Options used when producing normalized HTML.