Modify document with C#, VB.NET, ASP.NET from Sautin Software company
google+ facebook twitter youtube    
LATEST NEWS

 

 

The RTF-to-HTML .Net is library to convert Text, RTF DOCX documents to HTML 3.2, 4.01, HTML5 with CSS and XHTML using C# and VB.Net

    download free trial
    Suite includes:
  1. DLL component
  2. Detailed documentation
  3. Code samples
  4. Sample demo program for fast converting
  5. Test files
  6. License agreement

buy now


The RTF-to-HTML DLL .Net is a robust and independent .Net assembly to convert Text, RTF documents into HTML/XHTML documents with CSS. The component is 100% created in managed C# and absolutely standalone. It doesn't require MS Office or any other word-processor.

SDK to convert RTF to HTML in C# and .Net

  • Using the RTF-to-HTML DLL .Net you can easily create any type of a 32-bit or 64-bit .NET application including ASP.NET, Azure, Silverlight, WPF, SharePoint, Web Services and WinForms. Our .Net assembly is a Multi-Platform component, you may use it to build your application with Mono platform for Linux, Mac and Android (http://www.mono-project.com).
  • 100% Created with only managed C#
  • Absolutely standalone, you will need to only copy "SautinSoft.RtfToHtml.dll" into 'Bin' directory
  • No other dependencies
  • Has own RTF parser and HTML writer
  • Doesn't require Microsoft Office or any other dependencies
  • Works on any .Net platform (.Net 1.1, 2.0, 3.0, 3.5, 4.0 etc)
  • Works with Windows and even with Linux and Mac (thanks to Mono project http://www.mono-project.com)
  • Has great abilities to adjust an output HTML, XHTML or Text as you wish
  • Small size of assembly, less than 500 Kb
 

All our .NET Components:

PDF Focus .Net

SDK to convert PDF documents into Word, Excel, HTML, TXT, JPEG, PNG, GIF, TIFF, WMF, Multipage TIFF in C#, VB.Net, ASP.Net.
Price from $399(US)

PDF Metamorphosis .NET

Standalone .Net assembly to convert HTML, Word, RTF, and plain Text files into PDF in C#, VB.Net, ASP.Net. The component was created with pure C#.
Price from $239(US)

UseOffice .Net

SDK to transform between DOC, DOCX, XLS, XLSX, RTF, PPT, PDF, CSV, HTML formats with CSS - requires Microsoft Office installed.
Price from $250(US)

HTML-to-RTF Pro DLL .Net

Completely a standalone component to convert HTML files to Word, RTF, Text in C#, VB.Net, J#, ColdFusion. Merge RTF files.
Price from $239(US)

PDF Vision .Net

The component to convert images or Websites (HTML) to PDF format. It supports BMP to PDF, JPG to PDF, GIF to PDF and WMF, EMF, ICO, and PNG.
Price from $150(US)

Excel to PDF .Net

Excel to PDF .Net is a standalone component which allows any .Net application get professional export of Excel spreadsheets to PDF, Word, RTF documents.
Price from $239(US)

General Functions

The RTF-to-HTML DLL .Net is 100% C# .Net control to convert RTF to plan HTML 3.2, 4.01 with CSS, HTML5, RTF to XHTML with CSS, RTF to Text and Text to HTML. The component is just a class library for developers, but with powerfull abilities of exporting any RTF (rich text format) and Text document to HTML, XHTML with CSS.

Component supports:
- font face, color and size;
- tables;
- embed images (png, jpg, wmf);
- CSS;
- bullet lists;
- hyperlinks;
- italic, bold and underline text;
- subscript and superscript text;
- 20 types of encodings (UTF-8, Windows-1251, ISO-8859-2 etc.)
- and other HTML tags.

The DLL created with C/C++ programming language. It works on all versions Windows. (NT4.0/95/98/Me/2000/XP/2003/Vista). The component notes the small size (about 150 Kb) and has fast speed of conversion, it's about 10 web-pages/ per second.

Benefits

The component has methods to convert between files, strings, array of bytes, memory stream objects. Images can be extracted from RTF and saved to HDD as physical files or stored in memory or stored inside HTML using base64 algorithm.

  • Specify output format: HTML 3.2, HTML 4.01, XHTML 1.01, HTML 5, Text
  • Where to link images to phisycal file on HDD or inside HTML document
  • Converting with CSS or without CSS
  • Save CSS between tags <style>...</style> or inline styles <tag style="...">
  • Specify encoding of output HTML
  • Title and set up converting only part of HTML between <body>...</body> tags
  • Set united font, size and color for document
  • Specify table borders
  • Set single measurement units: pixels, points, mm, ems, inches.
  • Set prefix to style class names in HTML
  • Default tags for paragraphs <p> or <div>

Platform Independence and Technical Features

The RTF-to-HTML DLL .Net requires only .Net 1.1 or higher platform. Using the RTF-to-HTML DLL .Net you can easily create any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms . Our .Net assembly is Multi-Platform component, you may use it to build your application with Mono platform for Linux and Mac (http://www.mono-project.com).

  • 100% Created with only managed C#
  • Absolutely standalone, you will need to only copy "SautinSoft.RtfToHtml.dll" into 'Bin' directory
  • No other dependencies
  • Has own RTF parser and HTML writer
  • Doesn't require Microsoft Office ® or any other dependencies
  • Works on any .Net platform (.Net 1.1, 2.0, 3.0, 3.5, 4.0 etc)
  • Works with Windows and even with Linux and Mac (thanks to Mono project http://www.mono-project.com)
  • Has great abilities to adjust an output HTML, XHTML or Text as you wish
  • Small size of assembly, less than 500 Kb

Where can be used the component

Typical applications where our component can be used

  • News, emails, support information and hyperlink documents
  • Conversion of RTF (rich text format) from database to HTML5 purposely display it in ASP.Net page
  • Documents with tables structure and embedded graphics
  • Formatted reviews for internet blogs
  • Creating HTML emails with embeded images from RTF
  • Create viewers for RTF based documents
Below we shall show code samples how to use RTF-to-HTML DLL .Net in C# and VB .Net
  • How to convert RTF to HTML in C#
  • How to convert RTF to HTML in VB.Net
At the the first sample, you need only two lines to convert RTF to HTML in C#:
SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ConvertFile(@"d:\test.rtf", @"d:\test.html");

 

This sample demonstrates how to convert RTF string to HTML string in C# (C Sharp), it usefull when you don't want to create physical files and work only with memory:

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
string rtf = @"{\rtf {\b bold text {\i bold + italic}} and plan text}";
string html = r.ConvertString(rtf);

 

The component has a lot of properties, for example when you want to export RTF into HTML with images you may save all images as physical files in a single folder or save images inside HTML document.

C# sample how to force the dll store images in folder 'd:\my webs\images':

P.S. the folder 'd:\my webs' must exist, subfolder 'images' will be created by component.

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ImageStyle.ImageFolder = @"d:\my webs";
r.ImageStyle.ImageSubFolder = "images";
r.ImageStyle.IncludeImageInHtml = false;		  
r.ConvertFile(@"d:\test.rtf", @"d:\test.html");

 

This is a C# sample how to force the dll store images inside HTML document. It's usefull when you want to make RTF converting in memory without creating any files on HDD. Images will be saved inside HTML using base64 algorithm:

SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
r.ImageStyle.IncludeImageInHtml = true;		  
string html = r.ConvertFileToString(@"d:\test.rtf");

This is a first sample how to convert RTF file to HTML file in VB.Net , you will need only two lines of code:

Dim r As New SautinSoft.RtfToHtml()
r.ConvertFile("d:\test.rtf", "d:\test.html")

 

This sample demonstrates how to convert RTF string to HTML string in VB.Net (Visual Basic), it usefull when you don't want to create physical files and work only with memory:

Dim r As New SautinSoft.RtfToHtml()
Dim rtf As String = "{\rtf {\b bold text {\i bold + italic}} and plan text}"
Dim html As String = r.ConvertString(rtf)

 

The component has a lot of properties, for example when you want to export RTF into HTML with images you may save all images as physical files in a single folder or save images inside HTML document.

VB.Net sample how to force the dll store images in folder 'd:\my webs\images':

P.S. the folder 'd:\my webs' must exist, subfolder 'images' will be created by component.

Dim r As New SautinSoft.RtfToHtml()
r.ImageStyle.ImageFolder = "d:\my webs"
r.ImageStyle.ImageSubFolder = "images"
r.ImageStyle.IncludeImageInHtml = False
r.ConvertFile("d:\test.rtf", "d:\test.html")

 

This is a VB.Net sample how to force the dll store images inside HTML document. It's usefull when you want to make RTF converting in memory without creating any files on HDD. Images will be saved inside HTML using base64 algorithm:

Dim r As New SautinSoft.RtfToHtml()
r.ImageStyle.IncludeImageInHtml = True
Dim html As String = r.ConvertFileToString("d:\test.rtf")


The DLL created with C/C++ programming language. It works on all versions Windows. (NT4.0/95/98/Me/2000/XP/2003/Vista, 100% compatible with Windows 8). The component notes the small size (about 150 Kb) and has fast speed of conversion, it's about 10 web-pages/ per second.

Compatibility with W3C standards
HTML and XHTML documents produced by our library are completely compatible with W3C standards. We give a lot consideration of testing our HTML documents at W3C Markup validation service after each release of the component.


HTML documents converted by RTF-to-HTML DLL .Net are completely valid with W3C rules XHTML documents converted by RTF-to-HTML DLL .Net are completely valid with W3C rules CSS inside HTML documents converted by RTF-to-HTML DLL .Net are completely valid with W3C rules HTML5
 
HOME
Since 2002, Sautin Software has been developing and marketing .Net libraries that make it simple to process PDF, HTML and RTF files
I  Validator
Copyright © 2002 - 2017 Sautin Software. All rights reserved support@sautin.com