HTML to RTF .Net is 100% C# assembly to convert HTML to RTF and Text.
Absolutely standalone solution, doesn't require MS Office or any other.

The component can read and parse all types of HTML: 3.2, HTML 4.01, HTML 5 with CSS and XHTML. The component has own HTML parser.

There is a newer version of this package available.
See the version list below for details.
Install-Package sautinsoft.htmltortf -Version
dotnet add package sautinsoft.htmltortf --version
<PackageReference Include="sautinsoft.htmltortf" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add sautinsoft.htmltortf --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: sautinsoft.htmltortf,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=

// Install sautinsoft.htmltortf as a Cake Tool
#tool nuget:?package=sautinsoft.htmltortf&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

What's new in the version 7.0:
+Added the complete support of HTML to DOCX conversion.
+Absolutely new DOCX and RTF writers which correspond all modern specifications and compatible with all reading and viewing tools.
+Changed the API: added new overloaded methods: OpenHtml(), ToRtf(), ToDocx() and ToText(). Which allows to convert between various objects: File, Stream, String, Array of Bytes, URL.
+The full support of Shape converting: positioning and text wrapping.
+The new most exciting feature is that now HTML to RTF .Net can be used under .Net Core 2.0 and up. We've added support of .Net Core 2.0 and .Net Framework 4.6.1.
+Added new property 'TableFastProcessing' into the table proccessing algorithm. Now you may choose how to process tables: Fast with middle accuracy or with the maximal accuracy given the tenths of pixel.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 1,564 6/4/2021 178 5/12/2021 120 3/16/2021 113 1/18/2021 51,761 4/30/2020 7,429 2/11/2020 8,811 4/16/2019 4,860 8/16/2018 839 7/13/2018 580 7/11/2018 16,293 5/31/2018 27,068 1/5/2017
Show less