rtf-to-html

RTF to HTML conversion done right

License

License

GroupId

GroupId

com.github.bbottema
ArtifactId

ArtifactId

rtf-to-html
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

rtf-to-html
RTF to HTML conversion done right
Source Code Management

Source Code Management

https://github.com/bbottema/rtf-to-html

Download rtf-to-html

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.bbottema/rtf-to-html/ -->
<dependency>
    <groupId>com.github.bbottema</groupId>
    <artifactId>rtf-to-html</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.bbottema/rtf-to-html/
implementation 'com.github.bbottema:rtf-to-html:1.0.1'
// https://jarcasting.com/artifacts/com.github.bbottema/rtf-to-html/
implementation ("com.github.bbottema:rtf-to-html:1.0.1")
'com.github.bbottema:rtf-to-html:jar:1.0.1'
<dependency org="com.github.bbottema" name="rtf-to-html" rev="1.0.1">
  <artifact name="rtf-to-html" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.bbottema', module='rtf-to-html', version='1.0.1')
)
libraryDependencies += "com.github.bbottema" % "rtf-to-html" % "1.0.1"
[com.github.bbottema/rtf-to-html "1.0.1"]

Dependencies

provided (2)

Group / Artifact Type Version
org.jetbrains : annotations jar 16.0.2
com.github.spotbugs : spotbugs-annotations jar 3.1.3

test (2)

Group / Artifact Type Version
junit : junit jar 4.8.1
org.assertj : assertj-core jar 2.9.1

Project Modules

There are no modules declared in this project.

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.1 (22-October-2019)

  • #1: Missing support for UTF-8's legacy name (cp)65001

v1.0.0 (12-October-2019)

  • Initial release, moved from outlook-message-parser

Versions

Version
1.0.1
1.0.0