sautinsoft.htmltortf
8.5.2.16
See the version list below for details.
dotnet add package sautinsoft.htmltortf --version 8.5.2.16
NuGet\Install-Package sautinsoft.htmltortf -Version 8.5.2.16
<PackageReference Include="sautinsoft.htmltortf" Version="8.5.2.16" />
paket add sautinsoft.htmltortf --version 8.5.2.16
#r "nuget: sautinsoft.htmltortf, 8.5.2.16"
// Install sautinsoft.htmltortf as a Cake Addin #addin nuget:?package=sautinsoft.htmltortf&version=8.5.2.16 // Install sautinsoft.htmltortf as a Cake Tool #tool nuget:?package=sautinsoft.htmltortf&version=8.5.2.16
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
- .NET Core 2.0 - 3.1, .NET 5, 6, 7
- .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";
// You want to save in RTF.
string outputFile = @"result.rtf";
h.OpenHtml(inputFile);
h.ToDocx(outputFile);
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETCoreApp 2.1
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETCoreApp 2.2
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETCoreApp 3.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETCoreApp 3.1
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETFramework 4.8.1
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
net5.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
net6.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
-
net7.0
- System.Drawing.Common (>= 4.7.0)
- System.IO.Packaging (>= 4.4.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.11.21 | 1,162 | 11/22/2024 |
2024.11.14 | 1,197 | 11/15/2024 |
2024.8.20 | 20,836 | 8/21/2024 |
2024.5.22 | 7,856 | 5/22/2024 |
2023.12.6 | 25,332 | 12/6/2023 |
2023.6.1 | 26,538 | 6/1/2023 |
8.5.2.16 | 28,238 | 2/16/2023 |
8.4.11.9 | 1,741 | 11/9/2022 |
8.3.5.25 | 17,694 | 5/25/2022 |
8.2.12.7 | 10,911 | 12/7/2021 |
8.1.10.27-beta | 567 | 10/27/2021 |
8.1.6.7 | 7,624 | 6/4/2021 |
8.0.5.12 | 972 | 5/12/2021 |
8.0.3.12-beta | 497 | 3/16/2021 |
8.0.1.18-beta | 523 | 1/18/2021 |
7.4.4.30 | 500,726 | 4/30/2020 |
7.3.2.11 | 19,641 | 2/11/2020 |
7.1.4.17 | 22,047 | 4/16/2019 |
7.0.8.16 | 13,425 | 8/16/2018 |
7.0.7.16 | 1,456 | 7/13/2018 |
7.0.7.11 | 1,089 | 7/11/2018 |
7.0.6.4 | 17,361 | 5/31/2018 |
5.7.12.9 | 54,524 | 1/5/2017 |
What's new in the version 8.5:
+ We are faced with the problem of reading special characters (ä ü ö) from HTML in various encodings. We have done a lot of work to improve the reading of various encodings of users from all over the world. Now the result of converting to Word looks much better and more accurate.
+ Improved algorithm for calculating fill size for paragraphs.
+ The problem with incorrect determination of line spacing has been resolved.
+ The issue with the erroneous definition of the source encoding has been resolved. Now, encodings (Latin1, UTF-8, ISO-XXX, ASCII, etc) are recognized correctly.
+ The bug with wrapping tables has been resolved. Fixed bug when checking "part number".
+ We've fixed the issue with "h.PageStyle.PageNumbers.Appearance = SautinSoft.HtmlToRtf.ePageNumberingAppearence.PageNumSecond;" Now this option works fine!
+ Improved work with DOCX and RTF documents and fixed some minor issues, which our customers sent to us.