Overview

ScroogeXHTML for the Java platform is a library which can convert a subset of the Rich Text Format (RTF) standard to HTML5 and XHTML, as a complete document or only a fragment which may be embedded (inserted) in other documents.

It supports conversion of hyperlinks, simple tables, picture data extraction/data URI embedding, cascading style sheet (CSS) based document minimizing, and post processing/analysis of the intermediate DOM document.

ScroogeXHTML for the Java platform is easy to use and configure. It requires no external runtime libraries besides SLF4J (Simple Logging Facade for Java) and Java 7 SE.

Online demo

The online demo converts uploaded RTF documents and displays them in your web browser. In case of unexpected conversion results, please contact Habarisoft customer support.

Release Notes

6.6.0
New Added support for table cell background color conversion
New Added property ConvertAlignment (default true) enables / disables paragraph alignment conversion
New Faster algorithm for table cell merging
New Faster RGB to HTML color conversion
Fixed Fixed JavaDoc comments (JDK 8 JavaDoc warnings)
6.5.0
New Added support for paragraph background color
New Added support for paragraph border box
New Convert multiple blanks (convert blank+blank to   )
Fixed Fixed conversion for RTF which does not end with \par token
Previous releases ...

Quick Facts

Technical Information

Released 02 September 2017
Platform

Java SE 7

Dependencies Simple Logging Facade for Java (SLF4J)
Size ≈ 115 kB (Jar file)

License

Updates Minor and major updates are included for one year after purchase
Redistribution Free redistribution with your product when used in binary compiled single-user applications

Support

Bug reports Bugs can be reported at cases@habarisoft.com
Email support Basic technical support is included for one year after purchase

Feature Matrix

Text properties
Bold/italic/underlined ✓/✓/✓
Foreground/background/highlight color ✓/✓/✓
Subscript/superscript ✓/✓
Strikethrough/hidden ✓/✓
LTR/RTL text ✓/✓
Unicode / DBCS text ✓/✓
Language attribute
Paragraph properties
Paragraph Alignment: Left/right/centered/justified ✓/✓/✓/✓
Left/right/first line indent ✓/✓/✓
Background color
Border box
Space before/after ✓/✓
Numbered/unnumbered lists ✓/✓ ①
Tabulators replaced by a sequence of non breaking spaces
Document types
HTML5
XHTML 1.0 Transactional
Optimization
CSS based document minimizer
Font substitution
Logging framework
SLF4J support
Java platform
Minimum version Java SE 7
Dependencies
SLF4J
Advanced features
Picture data extraction ✓ ②
Data URI image embedding ✓ ③
Hyperlink fields
Bookmark fields
Android platform
Simple tables
Table width, left margin, column width ✓/✓/✓/✓
Table column merging
Table cell background color
Footnotes
Post processing (XPath based)
Experimental
List templates (RTF listtable) ✓ ④
Tests
JUnit tests
Other
Installer and uninstaller

① uses direct text formatting, does not generate <ol>/<ul>/<li> HTML elements

② conversion of image data to a web-safe format is not included

③ the included MemoryPictureAdapterBase64 supports embedding of PNG and JPG pictures

④ generates <ol>/<ul>/<li> elements but result quality varies between RTF writer applications

Text conversion example generated with ScroogeXHTML 6.5

Paragraph box borders and paragraph background colors are new features in version 6.5

ScroogeXHTML

Table conversion

Table cell background colors are supported since version 6.6

ScroogeXHTML

Frequently asked questions (FAQ)

General

On the library home page you will find a link to the download area for registered users. The credentials (user name and password) will be sent to you when a new release is available.
A trial version download is not available. To check if the library meets your requirements, you can try the online demo or purchase a Single Developer license, which includes a 14 days full money back guarantee. This allows to test the full version of the library without any risk. The reseller (ShareIt) will give a full refund if you find that the library does not work as expected.

Licensing

Yes, each developer that uses our products must have their own license.
No, the licenses are perpetual. However, you will be using the last product version released before your free upgrade period expired.
Yes! If you are a registered user, please contact Habarisoft and ask for discount coupon code.

Distribution

No, the source code is not redistributable, even if you change it. Under no circumstances is it acceptable to disclose the source to any third party.

Server Deployment license

Server Deployment Licenses are required if ScroogeXHTML for the Java platform is used on the server side of a client/server application.
No. A Server Deployment license covers all applications on the server.
No. Server Deployment license are perpetual, except in the case of license violations.
No. The proof of purchase for Server Deployment licenses is your license document.

Picture Support

The library does not convert embedded pictures. It extracts binary picture data from the RTF document. The picture data may be in WMF, JPEG, or other formats.

Acesis

Actiance

Adobe

Advocate Health Care

APT Business Solutions

Becton, Dickinson and Company

Canadian Natural Resources

Cayman Venture

Denim Group

e-vendo

Fatax

FOF

GE Medical Systems

Include Software

洁茹 牛

Mayo Foundation

Manuh Solutions

Micrologos Software Developer

NVISIA

NxGen Software

PAGU.at

PENTA college

Philips Medical Systems

ProClarity Corporation

QuadraMed Corporation

상호 정

Saxos Informatica

Scherer Software

Sigmalogic

YADA Systems