sautinsoft.htmltortf 2023.6.1

.NET 5.0 .NET Core 2.0 .NET Standard 2.0 .NET Framework 4.6.1
dotnet add package sautinsoft.htmltortf --version 2023.6.1
NuGet\Install-Package sautinsoft.htmltortf -Version 2023.6.1
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="sautinsoft.htmltortf" Version="2023.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add sautinsoft.htmltortf --version 2023.6.1
#r "nuget: sautinsoft.htmltortf, 2023.6.1"
#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.
// Install sautinsoft.htmltortf as a Cake Addin
#addin nuget:?package=sautinsoft.htmltortf&version=2023.6.1

// Install sautinsoft.htmltortf as a Cake Tool
#tool nuget:?package=sautinsoft.htmltortf&version=2023.6.1


Nuget versionNuget downloads


SautinSoft.HtmlToRtf is .NET assembly (SDK) which gives API to convert HTML to DOCX, RTF and Text. Merge and replace text in RTF documents.

Top Features

System Requirement

  • .NET Framework 4.6.1 - 4.8.1
  • .NET Core 2.0 - 3.1, .NET 5, 6, 7, 8
  • .NET Standard 2.0
  • Windows, Linux, macOS, Android, iOS.

Getting Started with HTML to RTF .Net

Are you ready to give HTML to RTF .NET a try? Simply execute Install-Package sautinsoft.htmltortf from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have HTML to RTF .NET and want to upgrade the version, please execute Update-Package sautinsoft.htmltortf to get the latest version.

Convert HTML to WORD

SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
string inputFile = @"sample.html";
// You want to save in DOCX.
string outputFile = @"result.docx";
// You want to save in RTF.
string outputFile = @"result.rtf";

Merge multiple RTF files

SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
// Array with several RTF files.
string[] rtfFiles = new string[] { "footer.rtf", "footer.rtf", "footer.rtf" };
string singleRtf = String.Empty;

// Let's divide RTF documents using page break.
h.MergeOptions.PageBreakBetweenDocuments = true;

foreach (string rtfFile in rtfFiles)
        string rtfFilePath = Path.Combine(htmlDir.FullName, rtfFile);

        // Copy 1st RTF to 'singleRtf'
        if (String.IsNullOrEmpty(singleRtf))
            singleRtf = File.ReadAllText(rtfFilePath);

        // Merge 2nd, 3rd ....
            singleRtf = h.MergeRtfString(singleRtf, File.ReadAllText(rtfFilePath));

// Save 'singleRtf' to a file only for demonstration purposes.
string singleRtfPath = Path.Combine(htmlDir.FullName, "single.rtf");
File.WriteAllText(singleRtfPath, singleRtf);


Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 is compatible. 
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)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2023.6.1 2,743 6/1/2023 9,234 2/16/2023 1,105 11/9/2022 8,431 5/25/2022 8,405 12/7/2021 279 10/27/2021 4,090 6/4/2021 601 5/12/2021 260 3/16/2021 258 1/18/2021 283,979 4/30/2020 15,664 2/11/2020 17,729 4/16/2019 7,846 8/16/2018 1,315 7/13/2018 1,002 7/11/2018 16,896 5/31/2018 40,876 1/5/2017

What's new in the version HTML to RTF .Net 2023.6:
+ Starting from this version, assembly numbering will start from "Year/Month/Day". You can always keep track of new releases and get the latest versions.
+ We've added the ability to use an alternative font, which is loaded from GDIFont.
+ .NET 8.0 support: Starting from the version 2023.6 appeared the SautinSoft.HtmlToRtf.dll assemblies compiled for a unified platform .NET 8.0.
+ Improved work with Fonts: Now the search for a suitable font is carried out according to several parameters and gives a better match.
+ HTML Reader: Added support for multiple tags, and added an option to recognize the language (En, Ch, Sl, etc) of the content text.
RTF Writer:
+ CheckBoxes are read properly. Fixes error reading value: true/false.
+ Fixed a bug where the table border was missing.

+ The problem with crossed out characters was solved.
+ Fixed the minor issues, found and sent to us from our customers. Therefore the component became more error-free.