top of page

Craft, activity and play ideas

PĆŗblicoĀ·14 miembros
Philip Kuznetsov
Philip Kuznetsov

The Ultimate Guide to Sautinsoft HTML to RTF .Net v7.1.4.17: Features, Benefits, and Examples



Sautinsoft HTML to RTF .Net v7.1.4.17: A Powerful and Versatile Converter for HTML Documents




If you are looking for a reliable and efficient way to convert HTML documents to Word, RTF, or Text formats, you might want to check out Sautinsoft HTML to RTF .Net, a .NET assembly that can do the job with no dependencies.




Sautinsoft HTML to RTF .Net v7.1.4.17



In this article, we will introduce you to this component and its features, show you how to use it in your applications, tell you what's new in the latest version, and how to get it.


What is HTML to RTF .Net?




A brief introduction to the component and its features




HTML to RTF .Net is a SDK that allows you to convert any HTML documents to Word, RTF, or Text formats in C# and VB.NET. You can also use it to merge RTF documents and replace text in them.


The component is absolutely standalone, meaning that it doesn't require MS Office or any other software installed on your system. It only requires .NET Framework 4.0 and up or .NET Core 2.0 and up.


The component has its own HTML parser, DOCX and RTF writers, which means that it can read and process all types of HTML, including HTML 5 with CSS and XHTML. It also supports and processes CSS and JavaScript in HTML documents.


The component offers a lot of useful settings and options that let you customize the conversion result as you wish. For example, you can set page size, orientation, margins, font face, headers, footers, page numbering, etc.


The benefits of using HTML to RTF .Net for converting HTML documents




There are many reasons why you might want to use HTML to RTF .Net for converting HTML documents, such as:



  • It is fast and efficient. The component can handle large and complex documents with ease, saving memory and time.



  • It is compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc. You can develop for any .NET platform or major operating system with a single code base.



  • It is easy to use. You only need a few lines of code to perform the conversion in your applications.



How to use HTML to RTF .Net in your applications?




The system requirements and installation steps




To use HTML to RTF .Net in your applications, you need to have the following:



  • .NET Framework 4.0 and up or .NET Core 2.0 and up installed on your system.



  • A license key for HTML to RTF .Net, which you can get from the official website.



  • A reference to the SautinSoft.HtmlToRtf.dll assembly in your project.



To install HTML to RTF .Net, you can follow these steps:



  • Download the HTML to RTF .Net package from the official website.



  • Unzip the package and copy the SautinSoft.HtmlToRtf.dll assembly to your project folder.



  • Add a reference to the SautinSoft.HtmlToRtf.dll assembly in your project.



  • Copy and paste the license key from the LicenseKey.txt file to your code.



The basic code examples for converting HTML to RTF, DOCX, and Text in C# and VB.NET




Once you have installed HTML to RTF .Net, you can start using it in your applications. Here are some basic code examples for converting HTML to RTF, DOCX, and Text in C# and VB.NET:


C#:



using System; using System.IO; using SautinSoft; namespace Sample class Sample static void Main(string[] args) // Set the license key HtmlToRtf.Key = "XXXXXXXXXXXXXXXXXXXXXX"; // Create an instance of HtmlToRtf class HtmlToRtf h = new HtmlToRtf(); // Specify the input HTML file string htmlFile = @"C:\sample.html"; // Specify the output file name and format string rtfFile = @"C:\result.rtf"; string docxFile = @"C:\result.docx"; string textFile = @"C:\result.txt"; // Convert HTML to RTF int result1 = h.ConvertFile(htmlFile, rtfFile); // Convert HTML to DOCX int result2 = h.ConvertFile(htmlFile, docxFile); // Convert HTML to Text int result3 = h.ConvertFile(htmlFile, textFile); // Check the conversion results if (result1 == 0) Console.WriteLine("Conversion from HTML to RTF succeeded."); else Console.WriteLine("Conversion from HTML to RTF failed."); if (result2 == 0) Console.WriteLine("Conversion from HTML to DOCX succeeded."); else Console.WriteLine("Conversion from HTML to DOCX failed."); if (result3 == 0) Console.WriteLine("Conversion from HTML to Text succeeded."); else Console.WriteLine("Conversion from HTML to Text failed.");


VB.NET:



Imports System Imports System.IO Imports SautinSoft Module Sample Sub Main() ' Set the license key HtmlToRtf.Key = "XXXXXXXXXXXXXXXXXXXXXX" ' Create an instance of HtmlToRtf class Dim h As New HtmlToRtf() ' Specify the input HTML file Dim htmlFile As String = "C:\sample.html" ' Specify the output file name and format Dim rtfFile As String = "C:\result.rtf" Dim docxFile As String = "C:\result.docx" Dim textFile As String = "C:\result.txt" ' Convert HTML to RTF Dim result1 As Integer = h.ConvertFile(htmlFile, rtfFile) ' Convert HTML to DOCX Dim result2 As Integer = h.ConvertFile(htmlFile, docxFile) ' Convert HTML to Text Dim result3 As Integer = h.ConvertFile(htmlFile, textFile) ' Check the conversion results If result1 = 0 Then Console.WriteLine("Conversion from HTML to RTF succeeded.") Else Console.WriteLine("Conversion from HTML to RTF failed.") End If If result2 = 0 Then Console.WriteLine("Conversion from HTML to DOCX succeeded.") Else Console.WriteLine("Conversion from HTML to DOCX failed.") End If If result3 = 0 Then Console.WriteLine("Conversion from HTML to Text succeeded.") Else Console.WriteLine("Conversion from HTML to Text failed.") End If End Sub End Module The advanced settings and options for customizing the conversion result




Besides the basic conversion methods, HTML to RTF .Net also provides a lot of advanced settings and options that allow you to customize the conversion result as you wish. For example, you can:



  • Set the page size, orientation, margins, and zoom factor for the output document.



  • Set the font face, size, color, and style for the output document.



  • Set the headers and footers for the output document, including text, images, page numbers, etc.



  • Set the table of contents for the output document, including title, levels, indentation, etc.



  • Set the watermark for the output document, including text, image, position, rotation, transparency, etc.



  • Set the encryption and protection for the output document, including password, permissions, etc.



  • Set the metadata for the output document, including title, author, subject, keywords, etc.



  • Set the image quality and resolution for the output document.



  • Set the text alignment and indentation for the output document.



  • Set the bullet and numbering styles for the output document.



To use these settings and options, you need to create an instance of RtfDocument class and assign it to the OutputFormat property of HtmlToRtf class. Then you can access and modify the properties of RtfDocument class according to your needs. For example:


C#:



using System; using System.IO; using SautinSoft; namespace Sample class Sample static void Main(string[] args) // Set the license key HtmlToRtf.Key = "XXXXXXXXXXXXXXXXXXXXXX"; // Create an instance of HtmlToRtf class HtmlToRtf h = new HtmlToRtf(); // Specify the input HTML file string htmlFile = @"C:\sample.html"; // Specify the output file name and format string rtfFile = @"C:\result.rtf"; // Create an instance of RtfDocument class RtfDocument r = new RtfDocument(); // Set some settings and options for the output document r.Page.Landscape = true; // Set page orientation to landscape r.Page.Margins.Top.Inch(0.5f); // Set top margin to 0.5 inch r.Page.Margins.Bottom.Inch(0.5f); // Set bottom margin to 0.5 inch r.Page.Margins.Left.Inch(0.5f); // Set left margin to 0.5 inch r.Page.Margins.Right.Inch(0.5f); // Set right margin to 0.5 inch r.Font.Name = "Arial"; // Set font name to Arial r.Font.Size = 12; // Set font size to 12 pt r.Header.Add("This is a header"); // Add a header text r.Footer.Add("This is a footer"); // Add a footer text // Assign RtfDocument instance to OutputFormat property of HtmlToRtf class h.OutputFormat = r; // Convert HTML to RTF int result = h.ConvertFile(htmlFile, rtfFile); // Check the conversion result if (result == 0) Console.WriteLine("Conversion from HTML to RTF succeeded."); else Console.WriteLine("Conversion from HTML to RTF failed.");


VB.NET:



Imports System Imports System.IO Imports SautinSoft Module Sample Sub Main() ' Set the license key HtmlToRtf.Key = "XXXXXXXXXXXXXXXXXXXXXX" ' Create an instance of HtmlToRtf class Dim h As New HtmlToRtf() ' Specify the input HTML file Dim htmlFile As String = "C:\sample.html" ' Specify the output file name and format Dim rtfFile As String = "C:\result.rtf" ' Create an instance of RtfDocument class Dim r As New RtfDocument() ' Set some settings and options for the output document r.Page.Landscape = True ' Set page orientation to landscape r.Page.Margins.Top.Inch(0.5F) ' Set top margin to 0.5 inch r.Page.Margins.Bottom.Inch(0.5F) ' Set bottom margin to 0.5 inch


r.Page.Margins.Right.Inch(0.5F) ' Set right margin to 0.5 inch r.Font.Name = "Arial" ' Set font name to Arial r.Font.Size = 12 ' Set font size to 12 pt r.Header.Add("This is a header") ' Add a header text r.Footer.Add("This is a footer") ' Add a footer text ' Assign RtfDocument instance to OutputFormat property of HtmlToRtf class h.OutputFormat = r ' Convert HTML to RTF Dim result As Integer = h.ConvertFile(htmlFile, rtfFile) ' Check the conversion result If result = 0 Then Console.WriteLine("Conversion from HTML to RTF succeeded.") Else Console.WriteLine("Conversion from HTML to RTF failed.") End If End Sub End Module


What's new in HTML to RTF .Net v7.1.4.17?




The latest improvements and bug fixes in the new version




HTML to RTF .Net is constantly updated and improved by the developers at Sautinsoft. The latest version, v7.1.4.17, was released on October 29, 2021, and it includes the following enhancements and fixes:



  • Improved the support for HTML 5 tags and attributes, such as <video>, <audio>, <source>, <track>, <picture>, <img srcset>, etc.



  • Improved the support for CSS 3 properties and selectors, such as flex, grid, transform, transition, animation, @media, :nth-child, etc.



  • Improved the support for JavaScript and jQuery scripts in HTML documents, such as <script>, <noscript>, document.write, window.onload, etc.



  • Improved the support for SVG graphics and icons in HTML documents, such as <svg>, <path>, <circle>, etc.



  • Improved the support for embedded fonts and web fonts in HTML documents, such as @font-face, Google Fonts, etc.



  • Improved the support for international characters and languages in HTML documents, such as UTF-8, Unicode, Arabic, Chinese, Japanese, etc.



  • Fixed the issue with incorrect parsing of some HTML tags and attributes, such as HTML entities, HTML comments, etc.



  • Fixed the issue with incorrect rendering of some RTF elements and attributes, such as tables, lists, hyperlinks, bookmarks, etc.



  • Fixed the issue with incorrect handling of some DOCX elements and attributes, such as styles, themes, fields, footnotes, etc.



  • Fixed the issue with incorrect conversion of some Text elements and attributes, such as line breaks, tabs, spaces, etc.



The comparison with the previous versions and the competitors




The new version of HTML to RTF .Net is more powerful and versatile than the previous versions. It can handle more complex and diverse HTML documents with better accuracy and quality. It can also convert HTML documents faster and more efficiently than before.


The new version of HTML to RTF .Net is also more competitive than other converters on the market. It has more features and options than most of them. It has less dependencies and requirements than some of them. It has better compatibility and support than others of them.


To illustrate this point, let's compare HTML to RTF .Net with some of its competitors:



Name


Features


Dependencies


Compatibility


Support


HTML to RTF .Net


- Support CSS and JavaScript in HTML documents- Support SVG graphics and icons in HTML documents- Support embedded fonts and web fonts in HTML documents- Support international characters and languages in HTML documents


- No dependencies- Only requires .NET Framework 4.0 and up or .NET Core 2.0 and up


- Compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc.- Compatible with any .NET platform or major operating system


- Provide free technical support via email and phone- Provide free updates and bug fixes- Provide free trial and money-back guarantee


Spire.Doc for .NET


- Convert HTML to RTF, DOCX, PDF, etc.- Merge, split, encrypt, decrypt, protect, unprotect Word documents- Create, modify, extract Word documents- Customize conversion settings and options- Support HTML 4 with CSS and XHTML- Support CSS and JavaScript in HTML documents- Support embedded fonts and web fonts in HTML documents- Support international characters and languages in HTML documents


- No dependencies- Only requires .NET Framework 2.0 and up or .NET Core 2.0 and up


- Compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc.- Compatible with any .NET platform or major operating system


- Provide free technical support via email and forum- Provide free updates and bug fixes- Provide free trial and money-back guarantee


Aspose.Words for .NET


- Convert HTML to RTF, DOCX, PDF, etc.- Merge, split, encrypt, decrypt, protect, unprotect Word documents- Create, modify, extract Word documents- Customize conversion settings and options- Support HTML 4 with CSS and XHTML- Support CSS and JavaScript in HTML documents- Support embedded fonts and web fonts in HTML documents- Support international characters and languages in HTML documents


- No dependencies- Only requires .NET Framework 2.0 and up or .NET Core 2.0 and up


- Compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc.- Compatible with any .NET platform or major operating system


- Provide free technical support via email and forum- Provide free updates and bug fixes- Provide free trial but no money-back guarantee


GemBox.Document for .NET


- Convert HTML to RTF, DOCX, PDF, etc.- Merge, split, encrypt, decrypt Word documents- Create - Create, modify, extract Word documents- Customize conversion settings and options- Support HTML 4 with CSS and XHTML- Support CSS and JavaScript in HTML documents- Support embedded fonts and web fonts in HTML documents- Support international characters and languages in HTML documents


- No dependencies- Only requires .NET Framework 3.5 and up or .NET Core 2.0 and up


- Compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc.- Compatible with any .NET platform or major operating system


- Provide free technical support via email and forum- Provide free updates and bug fixes- Provide free trial but no money-back guarantee


Syncfusion DocIO for .NET


- Convert HTML to RTF, DOCX, PDF, etc.- Merge, split, encrypt, decrypt Word documents- Create, modify, extract Word documents- Customize conversion settings and options- Support HTML 4 with CSS and XHTML- Support CSS and JavaScript in HTML documents- Support embedded fonts and web fonts in HTML documents- Support international characters and languages in HTML documents


- No dependencies- Only requires .NET Framework 3.5 and up or .NET Core 2.0 and up


- Compatible on multiple platforms, such as Windows, MacOS, Linux, Azure, AWS, etc.- Compatible with any .NET platform or major operating system


- Provide free technical support via email and forum- Provide free updates and bug fixes- Provide free trial but no money-back guarantee


As you can see from the table above, HTML to RTF .Net has more features and options than most of its competitors. It also has less dependencies and requirements than some of them. It also has better compatibility and support than others of them.


How to get HTML to RTF .Net v7.1.4.17?




The pricing and licensing information




If you are interested in getting HTML to RTF .Net v7.1.4.17, you need to know the pricing and licensing information first.


The component is sold under two types of licenses: Developer License and Server License.


The Developer License allows you to use the component on a single developer machine for development purposes only. You can use the component in unlimited number of applications or projects. You can also distribute the component with your applications or projects without any additional fees or royalties.


The Server License allows you to use the component on a single server machine for production purposes only. You can use the component in unlimited number of applications or projects hosted on that server. You can also distribute the component with your applications or projects without any additional fees or royalties.


The pricing for the licenses are as follows:



License Type


Price


Discounts


Support


Updates


Developer License


$439 per developer


10% off for 2-4 developers15% off for 5-9 developers20% off for 10


Acerca de

Welcome to the group! You can connect with other members, ge...

Miembros

bottom of page