API Reference

Class

HtmlToRtfOptions

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Controls semantic HTML to RTF conversion.

Inheritance

  • Object
  • HtmlToRtfOptions

Usage

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

Accepted by parameters

Constructors

Methods

public HtmlToRtfOptions Clone() #
Returns: HtmlToRtfOptions

Creates a reusable copy of the current options without carrying runtime diagnostics into the clone.

Returns

A new HtmlToRtfOptions with the same configuration values.

public static HtmlToRtfOptions CreateOfficeIMOProfile() #
Returns: HtmlToRtfOptions

Creates the default OfficeIMO HTML to RTF import profile.

Returns

A new HtmlToRtfOptions instance using the default semantic bridge behavior.

public static HtmlToRtfOptions CreateUntrustedHtmlProfile() #
Returns: HtmlToRtfOptions

Creates a bounded offline profile for untrusted HTML ingestion.

Returns

A new HtmlToRtfOptions instance configured for untrusted HTML.

Properties

public Uri BaseUri { get; set; } #

Base URI used to resolve relative hyperlinks and image sources.

public HtmlUrlPolicy UrlPolicy { get; set; } #

URL policy used before hyperlinks are materialized into RTF content.

public HtmlUrlPolicy ResourceUrlPolicy { get; set; } #

Optional separate policy for image sources. When omitted, UrlPolicy is used.

public Boolean PreserveUnknownTagsAsText { get; set; } #

Preserves unknown element names as bracketed text markers instead of treating them as transparent containers.

public Boolean IgnoreInsignificantWhitespace { get; set; } #

When enabled, text nodes made only of whitespace are ignored outside preformatted elements.

public Nullable<Int32> MaxHtmlNodes { get; set; } #

Optional maximum number of parsed HTML element and text nodes allowed for a conversion operation. When exceeded, conversion stops with HtmlRtfConversionLimitException and an error diagnostic.

public Nullable<Int32> MaxHtmlDepth { get; set; } #

Optional maximum parsed HTML element nesting depth allowed for a conversion operation. When exceeded, conversion stops with HtmlRtfConversionLimitException and an error diagnostic.