The HTML-to-RTF Pro DLL .Net is 100% C# managed assembly which enables any .Net app add these functions:
Namespace:
SautinSoft- Convert URL, ASPX, XHTML, HTML to RTF with CSS, images, tables, Unicode and full text formatting
- Convert URL, ASPX, XHTML, HTML to Word with CSS, images, tables, Unicode and full text formatting
- Convert URL, ASPX, XHTML, HTML to Unicode and ASCII Text
- Merge RTF documents
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.6.10.19
Syntax
| C# | Visual Basic |
public class HtmlToRtf
Public Class HtmlToRtf
Members
| All Members | Constructors | Properties | Methods | Events |
| Member | Description | |
|---|---|---|
| HtmlToRtf()()() |
Initializes a new instance of the SautinSoft.HtmlToRtf class
| |
| BaseURL |
It's target path of HTML document base location.
| |
| BeforeImageDownload |
Event which appears before downloading http images
| |
| BorderVisibility |
Set visibility for table's borders: visible, hidden or as in HTML document.
| |
| ConvertFile(String, String) |
Converts HTML, XHTML, ASPX file/URL to RTF or Text file. Output file will be overwritten.
| |
| ConvertFileToString(String) |
Converts HTML, XHTML, ASPX file/URL to RTF or Text string
| |
| ConvertString(String) |
Converts HTML, XHTML, ASPX string to RTF or Text string
| |
| ConvertString(String, ArrayList) |
Converts HTML, XHTML, ASPX string to RTF or Text string. This method can be used together with the RTF-to-HTML DLL .Net to convert RTF -> HTML -> RTF with images in memory.
| |
| ConvertStringToFile(String, String) |
Converts HTML, XHTML, ASPX string to RTF or Text file. Output file will be overwritten.
| |
| CreateTraceFile |
Specify the component to create a tracing text file.
| |
| Encoding |
Encoding of input HTML
| |
| FontFace |
Font Face
| |
| FontSize |
Font Size
| |
| ImageCompatible |
Set how to store images inside RTF
| |
| InputFormat |
Set input format: Text or Html
| |
| LineSpacing |
Setup line spacing
| |
| MergeAndReplaceRtfFileFromFile(String, String, String, String) |
Replaces all matches of string "whatReplaceInRtf" in RTF file "rtfSourcePath" by the content of file "wherewithReplaceRtfPath".
| |
| MergeAndReplaceRtfFileFromString(String, String, String, String) |
Replaces all matches of string "whatReplaceInRtf" in RTF file "rtfSourcePath" by the RTF string "wherewithReplaceRtf".
| |
| MergeAndReplaceRtfString(String, String, String) |
Replaces all found matches of string "whatReplaceInRtf" by the string "wherewithReplaceInRtf" and returns a new RTF document
| |
| MergeRtfFile(String, String, String) |
Merge two RTF files and create new sinlge RTF document. Output file will be overwritten.
| |
| MergeRtfString(String, String) |
Merge two RTF strings and create new sinlge RTF document
| |
| OutputFormat |
Set the output format: DOC, RTF, Text ansi or Unicode Text
| |
| PageAlignment |
Page Alignment
| |
| PageNumbers |
Allows to insert page numbers
| |
| PageNumbersAlignH |
page numbers horizontal alignment
| |
| PageNumbersAlignV |
page numbers vertical alignment
| |
| PageNumbersFormat |
Allows to set custom page numbers in produced Word/RTF document.
| |
| PageStyle |
Set page properties: page size, orientation and page margins
| |
| PreserveAlignment |
Preserve alignment as in HTML
| |
| PreserveBackgroundColor |
Preserve background color as in HTML
| |
| PreserveFontColor |
Preserve font color as in HTML
| |
| PreserveFontFace |
Preserve font face as in HTML
| |
| PreserveFontSize |
Preserve font size as in HTML
| |
| PreserveHR |
preserve horizontal rule
| |
| PreserveHttpCss |
Download Remote CSS
| |
| PreserveHttpImages |
Download Remote Images
| |
| PreserveHyperlinks |
Preserve Hyperlinks
| |
| PreserveImages |
Preserve images
| |
| PreserveNestedTables |
Preserve nested tables as in HTML
| |
| PreservePageBreaks |
Preserve PageBreaks
| |
| PreserveTables |
Preserve Tables or transfer to text
| |
| RtfLanguage |
Rtf Language
| |
| Serial |
Set activation key
| |
| TableCellPadding |
Set single cell padding for all tables
| |
| TraceFilePath |
Path to create a tracing file.
| |
| TraceType |
Type of tracing file: short, standard or full.
|
Remarks