sautinsoft.htmltortf 2023.12.6
SautinSoft.HtmlToRtf
SautinSoft.HtmlToRtf is .NET assembly (SDK) which gives API to convert HTML to DOCX, RTF and Text. Merge and replace text in RTF documents.
Quick links
Top Features
- Convert HTML to DOCX file.
- Convert HTML to RTF Stream.
- Convert HTML to Text string.
- How to merge multiple RTF files.
- How to add a page header and footer.
- How to set a page size and margins.
System Requirement
- .NET Framework 4.6.1 - 4.8.1
- .NET Core 2.0 - 3.1, .NET 5, 6, 7, 8
- .NET Standard 2.0
- Windows, Linux, macOS, Android, iOS.
Getting Started with HTML to RTF .Net
Are you ready to give HTML to RTF .NET a try? Simply execute Install-Package sautinsoft.htmltortf from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have HTML to RTF .NET and want to upgrade the version, please execute Update-Package sautinsoft.htmltortf to get the latest version.
Convert HTML to WORD
SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
string inputFile = @"sample.html";
// You want to save in DOCX.
string outputFile = @"result.docx";
HtmlConvertOptions opt = new HtmlConvertOptions();
opt.OutputFormat = HtmlToRtf.OutputFormat.Docx;
h.Convert(inputFile, outputFile, opt);
Merge multiple RTF files
SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
// Array with several RTF files.
string[] rtfFiles = new string[] { "footer.rtf", "footer.rtf", "footer.rtf" };
string singleRtf = String.Empty;
// Let's divide RTF documents using page break.
h.MergeOptions.PageBreakBetweenDocuments = true;
foreach (string rtfFile in rtfFiles)
{
string rtfFilePath = Path.Combine(htmlDir.FullName, rtfFile);
// Copy 1st RTF to 'singleRtf'
if (String.IsNullOrEmpty(singleRtf))
singleRtf = File.ReadAllText(rtfFilePath);
// Merge 2nd, 3rd ....
else
singleRtf = h.MergeRtfString(singleRtf, File.ReadAllText(rtfFilePath));
}
// Save 'singleRtf' to a file only for demonstration purposes.
string singleRtfPath = Path.Combine(htmlDir.FullName, "single.rtf");
File.WriteAllText(singleRtfPath, singleRtf);
Resources
- Website: www.sautinsoft.com
- Product Home: HTML to RTF .Net
- Download SautinSoft.HTMLtoRTF
- Developer Guide
- API Reference
- Support Team
- License
No packages depend on sautinsoft.htmltortf.
We've prepared many fixes and improvements. Let's see what's new in the version HTML to RTF .Net 2023.12:
- The main news is that we have switched to a new graphics engine - SkiaSharp (instead og System.Drawing.Common): SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library (skia.org). It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images. SkiaSharp provides cross-platform bindings for: .NET Standard 1.3 .NET Core .NET 6 Tizen Android iOS tvOS macOS Mac Catalyst WinUI 3 (Windows App SDK / Uno Platform) Windows Classic Desktop (Windows.Forms / WPF) Web Assembly (WASM) Uno Platform (iOS / macOS / Android / WebAssembly)
- HTML Reader: Added reading of SVG data and HTML forms and fields.
- Code Samples: We've updated our component usage examples. Now, your experience of use and the quality of the component have increased by an order of magnitude.
- DOCX/RTF Writer: The bug with reading the list marker has been fixed.
- Fixed the minor issues, found and sent to us from our customers. Therefore the component became more error-free.
.NET 8.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET 7.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET 6.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET 5.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Core 2.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Core 2.1
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Core 2.2
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Core 3.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Core 3.1
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Standard 2.0
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- SkiaSharp (>= 2.88.6)
- Svg.Skia (>= 1.0.0.2)
.NET Framework 4.6.1
- No dependencies.
.NET Framework 4.6.2
- No dependencies.
.NET Framework 4.7
- No dependencies.
.NET Framework 4.7.1
- No dependencies.
.NET Framework 4.7.2
- No dependencies.
.NET Framework 4.8
- No dependencies.
.NET Framework 4.8.1
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 2026.3.5 | 0 | 03/05/2026 |
| 2026.2.19 | 0 | 02/20/2026 |
| 2026.1.20 | 0 | 01/20/2026 |
| 2025.11.10 | 0 | 11/10/2025 |
| 2025.10.22 | 0 | 10/22/2025 |
| 2025.10.7 | 0 | 10/07/2025 |
| 2025.9.24 | 0 | 09/24/2025 |
| 2025.9.8 | 0 | 09/08/2025 |
| 2025.8.25 | 0 | 08/25/2025 |
| 2025.8.12 | 0 | 08/12/2025 |
| 2025.7.29 | 0 | 07/29/2025 |
| 2025.6.20-hotfix | 0 | 06/20/2025 |
| 2025.6.5 | 0 | 06/05/2025 |
| 2025.5.26-hotfix | 0 | 05/26/2025 |
| 2025.5.21 | 0 | 05/21/2025 |
| 2025.5.6 | 0 | 05/06/2025 |
| 2025.4.23 | 0 | 04/23/2025 |
| 2025.3.18 | 0 | 03/18/2025 |
| 2024.12.12 | 0 | 12/13/2024 |
| 2024.11.21 | 0 | 11/22/2024 |
| 2024.11.14 | 0 | 11/15/2024 |
| 2024.8.20 | 0 | 08/21/2024 |
| 2024.5.22 | 0 | 05/22/2024 |
| 2023.12.6 | 5 | 03/16/2026 |
| 2023.6.1 | 0 | 06/01/2023 |
| 8.5.2.16 | 0 | 02/16/2023 |
| 8.4.11.9 | 0 | 11/09/2022 |
| 8.3.5.25 | 0 | 05/25/2022 |
| 8.2.12.7 | 0 | 12/07/2021 |
| 8.1.10.27-beta | 0 | 10/27/2021 |
| 8.1.6.7 | 0 | 06/04/2021 |
| 8.0.5.12 | 0 | 05/12/2021 |
| 8.0.3.12-beta | 0 | 03/16/2021 |
| 8.0.1.18-beta | 0 | 01/18/2021 |
| 7.4.4.30 | 0 | 04/30/2020 |
| 7.3.2.11 | 0 | 02/11/2020 |
| 7.1.4.17 | 0 | 04/16/2019 |
| 7.0.8.16 | 0 | 08/16/2018 |
| 7.0.7.16 | 0 | 07/13/2018 |
| 7.0.7.11 | 0 | 07/11/2018 |
| 7.0.6.4 | 0 | 05/31/2018 |
| 5.7.12.9 | 0 | 01/05/2017 |