Skip to content

fadeyev/rtf-to-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APACHE v2 License Latest Release Javadocs Codacy

rtf-to-html

The world's only RFC compliant RTF to HTML parser.

rtf-to-html is available in Maven Central:

<dependency>
    <groupId>com.github.bbottema</groupId>
    <artifactId>rtf-to-html</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

There are three versions of RTF to HTML for you to discover:

  • RTF2HTMLConverterJEditorPane: A converter that invokes Swing's native RTF support
  • RTF2HTMLConverterClassic: The orignal custom (regex-based) built converter with reasonable results
  • RTF2HTMLConverterJEditorPane: The improved RFC-compliant parser with the most correct outcome
RTF2HTMLConverter converter = RTF2HTMLConverterJEditorPane.INSTANCE;
RTF2HTMLConverter converter = RTF2HTMLConverterClassic.INSTANCE;
RTF2HTMLConverter converter = RTF2HTMLConverterRFCCompliant.INSTANCE;

String html = converter.rtf2html("RTF text");

Latest Progress

v1.0.0 (12-October-2019)

  • Initial release

About

RTF to HTML conversion done right

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 63.1%
  • Rich Text Format 31.4%
  • Java 5.5%