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
<PackageReference Include="OfficeIMO.Html.Rtf" Version="3.2.6" />
<PackageVersion Include="OfficeIMO.Html.Rtf" Version="3.2.6" />
<PackageReference Include="OfficeIMO.Html.Rtf" />
paket add OfficeIMO.Html.Rtf --version 3.2.6
#r "nuget: OfficeIMO.Html.Rtf, 3.2.6"
#:package OfficeIMO.Html.Rtf@3.2.6
#addin nuget:?package=OfficeIMO.Html.Rtf&version=3.2.6
#tool nuget:?package=OfficeIMO.Html.Rtf&version=3.2.6
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 | Versions 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. |
-
.NETFramework 4.7.2
- OfficeIMO.Core (>= 3.2.6)
- OfficeIMO.Html (>= 3.2.6)
- OfficeIMO.Rtf (>= 3.2.6)
-
.NETStandard 2.0
- OfficeIMO.Core (>= 3.2.6)
- OfficeIMO.Html (>= 3.2.6)
- OfficeIMO.Rtf (>= 3.2.6)
-
net10.0
- OfficeIMO.Core (>= 3.2.6)
- OfficeIMO.Html (>= 3.2.6)
- OfficeIMO.Rtf (>= 3.2.6)
-
net8.0
- OfficeIMO.Core (>= 3.2.6)
- OfficeIMO.Html (>= 3.2.6)
- OfficeIMO.Rtf (>= 3.2.6)
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.