All Projects → erdomke → RtfPipe

erdomke / RtfPipe

Licence: MIT license
Library for processing rich-text format (RTF) streams

Programming Languages

Rich Text Format
576 projects
HTML
75241 projects
C#
18002 projects

Projects that are alternatives of or similar to RtfPipe

rtf-html-php
RTF to HTML converter in PHP
Stars: ✭ 88 (+6.02%)
Mutual labels:  rtf
highlight
Source code to formatted text converter
Stars: ✭ 44 (-46.99%)
Mutual labels:  rtf
rtfraptor
Extract OLEv1 objects from RTF files by instrumenting Word
Stars: ✭ 50 (-39.76%)
Mutual labels:  rtf
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (-19.28%)
Mutual labels:  rtf
vscode-language-rtf
RTF Language Extension for Visual Studio Code
Stars: ✭ 17 (-79.52%)
Mutual labels:  rtf
compressed rtf
Compressed Rich Text Format (RTF) compression and decompression in Python
Stars: ✭ 22 (-73.49%)
Mutual labels:  rtf
documentspark
💖 DocumentSpark - Simple secure document viewing server. Converts a document to a picture of its pages. Content disarm and reconstruction. CDR. Formerly p2. The CDR solution for ViewFinder remote browser.
Stars: ✭ 211 (+154.22%)
Mutual labels:  rtf
unrtf
Wrapper for 'unrtf' utility to extract text from RTF documents
Stars: ✭ 14 (-83.13%)
Mutual labels:  rtf
arrow-finder
These docs help you to find and use arrows you need more quickly
Stars: ✭ 24 (-71.08%)
Mutual labels:  rtf
Oletools
oletools - python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging.
Stars: ✭ 1,848 (+2126.51%)
Mutual labels:  rtf
Phpword
A pure PHP library for reading and writing word processing documents
Stars: ✭ 6,017 (+7149.4%)
Mutual labels:  rtf
Koodo Reader
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web
Stars: ✭ 2,938 (+3439.76%)
Mutual labels:  rtf
GemBox.Document.Examples
Read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, and TXT) in a simple and efficient way.
Stars: ✭ 53 (-36.14%)
Mutual labels:  rtf
striprtf
Stripping rtf to plain old text
Stars: ✭ 56 (-32.53%)
Mutual labels:  rtf
Wedge
可配置的小说下载及电子书生成工具
Stars: ✭ 62 (-25.3%)
Mutual labels:  rtf

RtfPipe

RtfPipe is a .NET library for parsing Rich Text Format (RTF) streams and converting them to HTML. While initially adapted from the work started by Jani Giannoudis, it has been completely rewritten to support more features. 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.

Usage

Below is a simple example of converting an RTF string to an HTML string.

NOTE: When using this in .Net Core, be sure to include the NuGet package System.Text.Encoding.CodePages. Also call the line marked in the region before calling any functions in the library.

#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);

Installing via NuGet

NuGet version

Install-Package RtfPipe

Building

Run build.ps1 from the root of the project to build it. The NuGet package will be output to the artifacts directory.

RTF Support

This library attempts to support the core RTF features documented in the RTF Specification 1.9.1. These features include:

  • Character formatting (bold, italics, color, ...)
  • Tables (including nested tables)
  • Lists
  • Hyperlinks
  • Pictures
  • Heading levels
  • HTML encapsulation (e.g. as performed by Outlook)

With that said, there are numerous cases for non-trivial documents where the library will not produce the "correct" visual representation when compared to other RTF readers (such as MS Word).

.Net Targets

The NuGet package can be used with the following .Net targets

  • .Net 3.5+
  • .Net Standard 2.0+
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].