OpenRTF icon indicating copy to clipboard operation
OpenRTF copied to clipboard

The Open Source RTF (Rich Text Format) Java Library

OpenRTF is an open source Java library for RTF (Rich Text Format) files

OpenRTF is a Java library for creating and editing RTF (Rich Text Format) files with a LGPL and MPL open source license. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.

OpenRTF is branched out of OpenPDF - https://github.com/LibrePDF/OpenPDF

Java CI License (LGPL version 2.1) License (MPL)

Use OpenRTF as Maven dependency

Add this to your pom.xml file to use the latest version of OpenRTF:

<dependency>
    <groupId>com.github.librepdf</groupId>
    <artifactId>openrtf</artifactId>
    <version>1.2.1</version>
</dependency>

Contributing

Release the hounds! Please send all pull requests. Make sure that your contributions can be released with a dual LGPL and MPL license. In particular, pull requests to the OpenRTF project must only contain code that you have written yourself, or copied from a project with the exact same license. GPL or AGPL licensed code will not be acceptable.

Documentation

Hello world

Coding Style

  • Code indentation style is 4 spaces.
  • Generally try to preserve the coding style in the file you are modifying.

Dependencies

Required Dependencies:

  • Java 8 or later is required to use OpenRTF. All versions Java 8 to Java OpenJDK 13 have been tested to work.
  • OpenPDF - https://github.com/LibrePDF/OpenPDF/