HTML to RTF .Net

.NET assembly to convert HTML to DOCX, RTF and Text with no dependencies.

  • HTML to DOCX
  • HTML to RTF
  • HTML to Text
  • Merge and Replace RTF
  • Compatible on multiple platforms, such as Windows, MacOS, and Linux
  • Deploy to Azure and AWS
.NET 7, 6, 5, Standard 2, Core 2x & 3x, Framework 4.6.2+
AWS (EC2, Lambda) Kubernetes (All Versions) Azure (WebApps, Functions v3) Docker (All Versions)
Download (2023.12.6)

Latest Release Info

What's New in HTML to RTF .Net

Overview

«HTML to RTF .Net» will help you in development of applications where is necessary to convert any HTML documents to Word, RTF, DOCX. After adding the reference to "SautinSoft.HtmlToRtf.dll" and typing 3-4 C# lines, you can use these API in your apps:

Why choose SautinSoft.HtmlToRtf?

Fast and Efficient

Save memory and time with the lightweight API architecture. The bigger the document, the faster our API generates complex Word documents.

Convert HTML to Word documents

Gives API to your Apps to convert HTML documents to Word: DOCX, RTF and Text documents.

JS and CSS Support

The component's HTML parser supports and process CSS and JavaScript. After the complete processing it generates the resulted Word document.

Full .NET Support for Windows, Linux, and MacOs

Develop for any .NET platform or major operating systems with a single code base. Use in your apps for .NET Framework, Mono, Xamarin.iOS, and Xamarin.Android.

Useful conversion settings

Because of a lot useful settings and options, you may set up the conversion result as you wish: set page size, orientation and margins, single font face, add custom headers and footers, add page numbering and a lot of more.

Deploy Apps to the Cloud

Be everywhere with cloud-based deployment. With help of Nuget, SautinSoft.HtmlToRtf can be easily deployed to Azure, AWS, and AWS Lambda.

Input Formats

HTML documents. The component can read and parse all types of HTML: 3.2, HTML 4.01, HTML 5 with CSS and XHTML. Our component doesn't require any special version of HTML format it will work with any version. The component has own HTML parser.

Scripting languages (like a JQuery, JavaScript) are not supported. If you want to convert HTML (saturated with JavaScript and complex CSS) but to PDF, use another our component - PDF Vision .Net.

These CSS are now supported by the current version of «HTML to RTF .Net»:

background-color:
background:
border-collapse:
border:
border-top:
border-right:
border-bottom:
border-left:
border-style:
border-top-style:
border-right-style:
border-bottom-style:
border-left-style:
border-width:
border-top-width:
border-right-width:
border-bottom-width:
border-left-width:
border-color:
border-top-color:
border-right-color:
border-bottom-color:
border-left-color:
color:
display:
direction:
font:
font-size:
font-family:
font-weight:
font-style:
height:
line-height:
list-style-type:
margin:
margin-top:
margin-right:
margin-bottom:
margin-left:
max-height:
max-width:
padding:
padding-top:
padding-right:
padding-bottom:
padding-left:
page-break-after:
page-break-before:
page-break-inside:
text-align:
text-decoration:
text-decoration-line:
text-decoration-color
text-indent:
text-transform:
transform:
visibility:
vertical-align:
width:
white-space:
writing-mode:

Output Formats

RTF documents. The component creates RTF documents 1.8. The component has own RTF parser and render. If you are looking only for C# RTF class which can parse and render RTF documents, you may email us: support@sautinsoft.com

DOCX documents. The component creates DOCX documents according to Office Open XML (Ecma 4th edition). The component has own DOCX render. If you are looking only for C# DOCX class which can parse and render DOCX documents, take a look at our: Document .Net.

Text documents. The component can also create Text from HTML. There is nothing special here, only a thing: unicode characters are supported too.

Feature Highlights

HTML to DOCX

Our .NET assembly provides by API to convert HTML pages to DOCX documents. It has own HTML reader which supports CSS and JavaScript and own standalone DOCX writer.

HTML to RTF

.NET SDK to convert HTML document into RTF format. Output RTF can be opened in MS Word, WordPad, OpenOffice, Libreoffice. Can convert file, url, string, array of bytes and stream object.

HTML to Text

Here is an example how to convert HTML document to Text and get result as C# Stream object. Our SDK is completely standalone .NET assembly and doesn't need anything else.

Merge and Replace RTF

With help of our .NET assembly you can easily merge multiple RTF files into single. Also it provides methods to replace text inside RTF document by another RTF content.

Add Page Numbering

Convert HTML page to Word (DOCX format) document and specify custom page numbering during the conversion. You can set the desired formatting and alignment.

Add Header and Footer

Our component gives you API to convert HTML to RTF, DOCX and Text documents with a lot of options. For example, properties to add custom header and footer, page numbering.

Explore the Advanced Features

HTML to RTF .Net code-examples

Actually the component can convert to DOCX and RTF with a lot of options, such as: Add Header and Footer, Specify Page Numbering, Add custom Watermarks, Set Page Size, Margins and Orientation and a lot of more. See the Developer Guide to find out simple, advanced and complex examples, it contains more than 50 examples.

Easy Licensing and Distribution

Trusted by the World's Leading Companies

IBM
Intel
Cisco
Microsoft
Siemens
Uber
Indiana University – Purdue University Indianapolis
The University of Manchester
New York State
University of Pittsburgh
Western Standard - Translation and Library Technologies
United Graphic Expression Corporation
FoxyUtils
Talent management software
PROS
World Wrestling Entertainment
Moody's Investors Service
Nuance Communications