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.

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.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 1,541 4/16/2019 2,601 8/16/2018 435 7/13/2018 268 7/11/2018 5,240 5/31/2018 15,465 1/5/2017