OfficeIMO.Html.Rtf 3.2.6

Prefix Reserved
dotnet add package OfficeIMO.Html.Rtf --version 3.2.6
                    
NuGet\Install-Package OfficeIMO.Html.Rtf -Version 3.2.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Html.Rtf" Version="3.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Html.Rtf" Version="3.2.6" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Html.Rtf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Html.Rtf --version 3.2.6
                    
#r "nuget: OfficeIMO.Html.Rtf, 3.2.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Html.Rtf@3.2.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Html.Rtf&version=3.2.6
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Html.Rtf&version=3.2.6
                    
Install as a Cake Tool

OfficeIMO.Html.Rtf

OfficeIMO.Html.Rtf provides the optional semantic bridge between HtmlConversionDocument and RtfDocument. Plain HTML and plain RTF applications remain independent.

dotnet add package OfficeIMO.Html.Rtf

The public APIs remain in the familiar OfficeIMO.Html namespace:

using OfficeIMO.Html;
using OfficeIMO.Drawing;
using OfficeIMO.Rtf;

HtmlConversionDocument html = HtmlConversionDocument.Parse(
    "<p>Hello <strong>RTF</strong></p>");
RtfDocument rtf = html.ToRtfDocument();

RtfToHtmlResult roundTrip = rtf.ToHtmlResult(
    RtfToHtmlOptions.CreateWebSafeProfile());
roundTrip.Report.RequireNoLoss();

For a complete responsive and print-aware review document, select the named print profile and a shared theme:

string reviewHtml = rtf.ToHtml(
    RtfToHtmlOptions.CreatePrintReviewProfile(OfficeVisualThemeKind.WordLike));

CreateWebSafeProfile() is the bounded semantic publishing profile. CreateRoundTripProfile() enables trusted private metadata and embedded payloads for editable HTML/RTF workflows. CreatePrintReviewProfile() emits a complete static document with the shared OfficeIMO stylesheet; it never enables script execution or remote browser behavior. RtfHtmlExportProfile prevents selecting another adapter's profile, while SharedProfile exposes the generic engine mapping. DocumentOutput composes full-document versus fragment output, title, language, theme, default styles, and newlines. Conversion results retain per-construct preserved, simplified, omitted, and rejected diagnostics.

The bridge preserves supported structure and reports approximation or loss. Native RTF editing and exact unchanged-source preservation remain in OfficeIMO.Rtf.

Bounded, single-surface positioned and floating HTML regions map to editable page-anchored RTF paragraph frames with native size, offsets, wrap controls, and solid backgrounds. Repeated or fragmented paged regions stay in semantic flow; background image layers, shadows, and stacking metadata without an RTF frame equivalent are diagnosed. Set HtmlToRtfOptions.ImportEditableLayoutRegions = false to retain semantic flow only.

Dependency footprint: OfficeIMO.Core, OfficeIMO.Html, and OfficeIMO.Rtf.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.Html.Rtf:

Package Downloads
OfficeIMO.Email.Html

Dependency-isolated safe HTML, RTF, text, and inline-resource projection for OfficeIMO email artifacts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.6 142 8/22/2026
3.2.5 335 8/21/2026
3.2.4 289 8/19/2026
3.2.3 131 8/17/2026
3.2.2 104 8/13/2026
3.2.1 122 8/11/2026
3.2.0 130 8/7/2026