ScroogeXHTML for the Java platform
is a library which converts RTF to HTML5 and XHTML, as a standalone document, or as a fragment which can be embedded in other documents.
* supports RTF features such as hyperlinks, field results, simple tables, picture data extraction, and embeds PNG and JPG pictures as data URIs
* minimizes documents using CSS font definitions, and supports post processing of the intermediate DOM document for additional fine tuning
* is easy to use, and requires no external runtime libraries except the SLF4J logging API
* supports a basic subset of the RTF specification
The online demo converts a RTF document and displays the result HTML5.
Home page: https://www.scroogexhtml.com
Online demo: https://www.scroogexhtml.com/sxd8
Javadoc API: https://www.habarisoft.com/scroogexhtml_j/8.5.0/docs/api/index.html
Full source code available.