Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlRtfExportOptions

OfficeIMO.Html

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

Controls semantic HTML to RTF conversion.

Inheritance

  • object
  • HtmlRtfExportOptions

Usage

Explore 7 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 4

Constructors

public HtmlRtfExportOptions() #

Methods

public HtmlRtfExportOptions Clone() #

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

Returns

HtmlRtfExportOptions A new HtmlRtfExportOptions with the same configuration values.
public static HtmlRtfExportOptions CreateOfficeIMOProfile() #

Creates the default OfficeIMO HTML to RTF import profile.

Returns

HtmlRtfExportOptions A new HtmlRtfExportOptions instance using the default semantic bridge behavior.

Properties

public static HtmlRtfExportOptions UntrustedDefaults { get; } #

Creates a bounded offline profile for untrusted HTML ingestion.

Value

A new HtmlRtfExportOptions instance configured for untrusted HTML.

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, HtmlRtfExportOptions.UrlPolicy is used.

public bool PreserveUnknownTagsAsText { get; set; } #

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

public bool IgnoreInsignificantWhitespace { get; set; } #

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

public bool ImportEditableLayoutRegions { get; set; } #

When true, bounded positioned and floating HTML regions are retained as editable native RTF paragraph frames.

public int? 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 int? 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.

public RtfSaveOptions? SaveOptions { get; set; } #

RTF writer settings used when the converted document is saved.

public Encoding? Encoding { get; set; } #

Encoding used when the RTF is saved. Null uses the RTF writer default.

public bool FailOnLoss { get; set; } #

Throws OfficeConversionException when the conversion reports loss.