Click or drag to resize

HtmlToRtf Class

The «HTML to RTF .Net» is .NET SDK, completely written in C#, to convert HTML documents to DOCX, RTF and Text formats.
Inheritance Hierarchy
SystemObject
  SautinSoftHtmlToRtf

Namespace: SautinSoft
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2024.12.12
Syntax
public class HtmlToRtf

The HtmlToRtf type exposes the following members.

Constructors
 NameDescription
Public methodHtmlToRtf Initializes a new instance of the SautinSoft.HtmlToRtf class.
Public methodHtmlToRtf(String) Initializes a new instance of the SautinSoft.HtmlToRtf.
Top
Properties
 NameDescription
Public propertyExceptionList Allows to get list with all arisen exceptions during the one conversion cycle.
Public propertyCode exampleMergeSetup Gets and sets options to merge RTF documents.
Top
Methods
 NameDescription
Public methodCode exampleConvert(Byte, Byte, HtmlToRtfHtmlConvertOptions) Converts HTML to DOCX, RTF or Text documents using byte arrays.
Public methodConvert(Stream, Stream, HtmlToRtfHtmlConvertOptions) Converts HTML to DOCX, RTF or Text documents using specified streams.
Public methodCode exampleConvert(String, String, HtmlToRtfHtmlConvertOptions) Converts HTML to DOCX, RTF or Text documents using file paths.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMergeAndReplaceRtfFileFromFile Replaces all matches of string "whatReplaceInRtf" in RTF file "rtfSourcePath" by the content of file "wherewithReplaceRtfPath".
Public methodMergeAndReplaceRtfFileFromString Replaces all matches of the textual string "textToReplace" in RTF file "rtfSourcePath" by the RTF string "wherewithReplaceRtf".
Public methodMergeAndReplaceRtfString Replaces all matches of the string "textToReplace" by the string "wherewithReplaceInRtf" and returns a new RTF document.
Public methodMergeRtfFile(String, String, String) Merge two RTF files and create new single RTF document. Output file will be overwritten.
Public methodMergeRtfFile(String, String, String, Encoding) Merge two RTF files and create new single RTF document. Output file will be overwritten.
Public methodMergeRtfString(String, String) Merge two RTF strings and create new single RTF document
Public methodMergeRtfString(String, String, Encoding) Merge two RTF strings and create new single RTF document
Public methodStatic memberCode exampleSetLicense
Activate your copy after purchasing or use temporary license for delete trial message. ATTENTION: specify this property first of all before creating the instance of HTML to RTF .Net!

Use it when you got own license. We offer two license types:

Permanent license from sautinsoft.com and

Temporary license from https://sautinsoft.com/start-for-free/.

Have question? Ask us: support@sautinsoft.com.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventBeforeImageDownload Event which appears before downloading http images
Top
See Also