RtfPipe is a .NET library for parsing Rich Text Format (RTF) streams and converting them to HTML. It is adapted from the work started by Jani Giannoudis which is documented on Code Project. When combined with the BracketPipe library, this library can also be used to convert RTF streams to various text format such as Markdown and Textile.
Simple example of converting an RTF string to an HTML string:
var html = Rtf.ToHtml(rtf);
Installing via NuGet
It is designed as a .Net Standard library targeting .Net Standard 1.0.
That means it supports the following platforms:
- .NET Core 1.0+
- .NET Framework 4.5+
- Xamarin vNext+
- Universal Windows Platform 10.0+
- Windows 8.0+
- Windows Phone 8.1+
- Windows Phone Silverlight 8.0+
The NuGet package build also supports .Net 2.0 and .Net 4.0.
Most of the code is covered under the Code Project Open License. The rest of the code should be considered freely open source.