Install RtfPipe via NuGet
masterYou can install RtfPipe using the NuGet Package Manager console.
Install-Package RtfPiperepository·master·Indexed 41 days ago
https://github.com/erdomke/rtfpipeA .NET library for parsing Rich Text Format (RTF) streams and converting them into HTML. It supports core features from the RTF Specification 1.9.1, including character formatting, tables, lists, hyperlinks, and pictures. Compatible with .NET 3.5+ and .NET Standard 2.0+.
You can install RtfPipe using the NuGet Package Manager console.
Install-Package RtfPipeUse the Rtf.ToHtml method to convert an RTF string into an HTML string.
Important for .NET Core users:
System.Text.Encoding.CodePages NuGet package.Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); before calling any RtfPipe functions to ensure proper encoding support.#if NETCORE
// Add a reference to the NuGet package System.Text.Encoding.CodePages for .Net core only
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
#endif
var html = Rtf.ToHtml(rtf);RtfPipe is compatible with the following .NET targets:
RtfPipe attempts to support core features from the RTF Specification 1.9.1, including:
Note: For highly complex documents, the visual output may differ from professional RTF readers like MS Word.