RTF to HTML .Net is 100% written in C# assembly which provides API to convert Text, DOCX and RTF documents to HTML 3.2, 4.01 + with CSS, HTML5, XHTML 1.01.

Namespace:  SautinSoft
Assembly:  SautinSoft.RtfToHtml (in SautinSoft.RtfToHtml.dll) Version: 6.2.2.1

Syntax

      
 C#  Visual Basic 
public class RtfToHtml
Public Class RtfToHtml

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
RtfToHtml()()()
Creates a new instance of the RtfToHtml class
ComputeCharWidth(Char, Font)
ConvertFile(String, String)
Converts Text/RTF/DOCX file to Text/HTML/XHTML file. Output file will be overwritten.
ConvertFileToString(String)
Converts Text/RTF/DOCX file to Text/HTML/XHTML string
ConvertFileToString(String, List<(Of <(RtfToHtml..::.SautinImage>)>))
Converts Text/RTF/DOCX file to Text/HTML/XHTML string
ConvertString(array<Byte>[]()[])
Converts an array of bytes with Text/RTF/DOCX document to Text/HTML/XHTML string
ConvertString(MemoryStream)
Converts MemoryStream object with Text/RTF/DOCX to Text/HTML/XHTML string
ConvertString(String)
Converts Text/RTF string to Text/HTML/XHTML string
ConvertString(array<Byte>[]()[], List<(Of <(RtfToHtml..::.SautinImage>)>))
Converts an array of bytes with Text/RTF/DOCX document into Text/HTML/XHTML string
ConvertString(MemoryStream, List<(Of <(RtfToHtml..::.SautinImage>)>))
Converts object of MemoryStream with Text/RTF/DOCX into Text/HTML/XHTML string
ConvertString(String, List<(Of <(RtfToHtml..::.SautinImage>)>))
Converts Text/RTF string to Text/HTML/XHTML string with placing images into ArrayList
ConvertStringToFile(array<Byte>[]()[], String)
Converts stream of bytes with Text/RTF/DOCX into Text/HTML/XHTML file. Output file will be overwritten.
ConvertStringToFile(MemoryStream, String)
Converts MemoryStream object with Text/RTF/DOCX into Text/HTML/XHTML file. Output file will be overwritten.
ConvertStringToFile(String, String)
Converts Text/RTF string to Text/HTML/XHTML file. Output file will be overwritten.
Encoding
Set encoding for the resulting HTML document
ExceptionList
Allows to get list with all arisen exceptions during the one conversion cycle.
HtmlParts
Specify the component to produce only some parts of the HTML document
ImageStyle
Allows to specify different properties for images: quality, format, path to store etc.
OpenDocx(array<Byte>[]()[])
Opens a DOCX document from an array of bytes. Works under .Net 4.0 or higher.
OpenDocx(Stream)
Opens a DOCX document from System.IO.Stream object. Works under .Net 4.0 or higher.
OpenDocx(String)
Opens a DOCX document from a file. Works under .Net 4.0 or higher.
OpenDocx(Uri)
Opens a DOCX document from System.Uri object. Works under .Net 4.0 or higher.
OpenRtf(array<Byte>[]()[])
Opens RTF document from array of bytes.
OpenRtf(Stream)
Opens RTF document from System.IO.Stream object.
OpenRtf(String)
Opens RTF document from file or string.
OpenRtf(Uri)
Opens RTF document from System.Uri object.
OpenRtfFromString(String)
Opens RTF document from string.
OutputFormat
Specify output document format: HTML_32, HTML_401, XHTML_10, HTML_5 or Text
Serial
Property to activate your copy of the component
SetSerial(String)
Set a serial number to activate your copy after the purchasing.
TableStyle
Specify table properties for output HTML document: borders and width
TagStyle
Set up tags by default, for example set tags for paragraphs: <p> or <div>
TextStyle
Set up properties for the resulting HTML document: title, alignment, default font, color, size, name for CSS styles, etc.
ToHtml()()()
Creates HTML document as string.
ToHtml(List<(Of <(RtfToHtml..::.SautinImage>)>))
Creates HTML document as string and additionally saves all images into arImages list.
ToHtml(String)
Creates HTML file.
UseNumericCharacterReference
Adjust the component to write HTML symbols in "NCR" notation: &#xxx;

Remarks

The library enables to any .Net app convert:
  • Text and RTF documents to HTML 3.2, 4.01 + with CSS, HTML5, XHTML 1.01
  • DOCX documents to HTML 3.2, 4.01 + with CSS, HTML5, XHTML 1.01. SautinSoft.RtfToHtml.dll supports DOCX staring from .Net 4.0 platform.
  • RTF documents to Text

The component provides conversion with full text formatting (font face, color, size, bold, italic, underline, double underline, strike, superscript, subscript), images (JPG, PNG, GIF, BMP and images embed in HTML using base-64 coder), tables (borders, background, nested tables, merged cells), full Unicode support, ordered and unordered lists etc.

Inheritance Hierarchy

System..::.Object
  SautinSoft..::.RtfToHtml

See Also