Fast and compact RTF to HTML5 converter library for the Java SE platform
ScroogeXHTML is a document conversion software library for the Java platform. It can be used to convert RTF (rich text format) documents to HTML5 standalone documents, or to HTML markup fragments, which can be embedded in other documents. This enables software applications to create HTML from existing RTF documents 'on demand'. The library provides configuration options, which control many aspects of the conversion.
ScroogeXHTML is available in two editions to choose from: a Jar edition, and a Source Code edition. Redistribution with single-user applications is free of charge. For usage with server-side applications, please read the Server Deployment License terms which are explained here.
Supports hyperlinks, bookmarks, multi-language and LTR/RTL text, field results and simple tables
Minimizes documents using CSS font definitions and generation of local font styles for text with different attributes
Includes an API for post-processing of the intermediate DOM tree to support additional fine tuning
Easy to use, compact and fast, and requires no external runtime libraries except the SLF4J logging facade
The web-based online demo converts your RTF document to HTML5 and allows to configure the conversion
Open online demoPicture data extraction, complimentary code for embedding BMP/JPG/PNG images as Data URIs
Java code
ScroogeXHTML scrooge = new ScroogeXHTML();
scrooge.setAddOuterHTML(true);
String html = scrooge.convert("{\\rtf1 \"Hello world!\"}");
System.out.println(html);
HTML output
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Untitled document</title>
<meta content="ScroogeXHTML RTF converter 11.0.RC2" name="generator">
</head>
<body>
<p>"Hello world!"</p>
</body>
</html>
Text properties | |
Bold/italic/underlined | ✓/✓/✓ |
Foreground/background/highlight color | ✓/✓/✓ |
Subscript/superscript | ✓/✓ |
Strikethrough/hidden | ✓/✓ |
Relative font size units | em (default)New in 11.0 |
Absolute font size units | px, pt |
LTR/RTL text | ✓/✓ |
Unicode/DBCS text | ✓/✓ |
Language attribute | ✓ |
Paragraph properties | |
Left/right/centered/justified alignment | ✓/✓/✓/✓ |
Left/right/first line indent | ✓/✓/✓ |
Background color | ✓ |
Border box color/width | ✓/✓ |
Border box line style | ✓ |
Space before/after | ✓/✓ |
Tabulators | replaced by a sequence of non breaking spaces |
Lists | |
Support for \listtable definitions | ✓ (enabled by default)Improved in 11.0 |
Support for \*\pn destination based lists | ✓ |
Fallback mode using \pntext | ✓ ① |
① Uses direct text formatting, does not generate HTML ol or ul elements. |
|
Other content | |
Document body language | ✓ (based on \deflang token)New in 11.0 |
External hyperlinks | ✓ |
Internal links (bookmarks) | ✓ |
Pictures | |
Picture data extraction | ✓ |
Picture formats | BMP/EMF/JPG/PICT/PNG/WMF |
Picture storage types | Binary / hexadecimal |
Tables | |
Simple tables | ✓ |
Total width: pixel/percent | ✓/✓ |
Left margin: pixel/percent | ✓/✓ |
Column width: pixel/percent | ✓/✓ |
Row height | ✓ |
Horizontal cell merging | ✓ |
Cell background color | ✓ |
Output document types | |
HTML5 | ✓ |
XHTML 1.0 Transitional | ✓ |
Optimization | |
CSS based document minimizer | ✓ |
Font name substitution | ✓ |
Advanced features | |
Post processing events | ✓ |
Footnotes | ✓ |
Platforms | |
Java SE 11 platform | Tested ✓ |
Java SE 17 platform | Tested ✓ |
Java SE 21 platform | Tested ✓ |
Prices are per developer seat.
JAR EDITION
€295.00 |
SOURCE EDITION
€1,250.00 |
|
Lifetime license | ✓ | ✓ |
Redistribution in single-user applications ① | ✓ | ✓ |
Instant electronic delivery | ✓ | ✓ |
Basic technical support included | 1 year | 1 year |
Updates and upgrades included | 1 year | 1 year |
Library source code included | - | ✓ |
JUnit tests included | - | ✓ |
Early access to development snapshots | - | ✓ |
Buy now |
Buy now |
|
① Single Developer License and Server Deployment License terms are explained here |
Released 5 October 2024
The "Getting Started" user guide
Online API documentation
Enhancements and bug fixes
Frequently Asked Questions
Support and sales inqueries
Technical articles and announcements
Released 5 October 2024
get_app
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. New releases will also be announced on the blog.
Go to the download sectioncheck
Yes, a free online demo version is available at https://www.scroogexhtml.com/sxd11.0.RC2. There is also a time-limited trial version of the Jar edition.
Go to the online demohelp_outline
The library does not convert embedded pictures, it only extracts the raw picture data from the RTF document. The library may contain complimentary code for picture processing support, but this code is experimental and not covered by the basic support plan.
help_outline
No.
check
Yes, you may receive a discount coupon code to purchase the Source Edition at a reduced price.
check
Yes, each developer that uses our products must have their own license.
No, developer licenses are perpetual. However, you will be using the last product version released before your free upgrade period expired. A license may also be revoked in case of license violations.
block
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.
help_outline
License types (Single Developer License and Server Deployment License) are explained on the page /scroogexhtml_license.html.
ScroogeXHTML License Typeshelp_outline
Server Deployment Licenses are available under two license models, 'Perpetual' or 'Subscription'. When licensed as a subscription, the license expires when the subscription ends. Licenses may also expire in case of license violations.
No, the proof of purchase for Server Deployment Licenses is your license document.
block
No. ScroogeXHTML Server Deployment Licenses or parts of it may not be distributed, sold, rented or transferred to any other party, this includes mergers and acquisitions of the license holder.
Acesis
Actiance
Advocate Health Care
Artisan Design Group
Axalta Coating Systems
Becton, Dickinson and Company
Bracari
General Dynamics
Glencore International AG
iBASEt
Iodine Software
PAGU.at
ProClarity Corporation
QuadraMed Corporation
Working Systems Cooperative
format_quote"This is an excellent unique product that has saved us many hours of work. It is simple to use with lots of documentation." — Stewart S., UK
format_quote"It works great and it is stunningly fast - on production, converting 115.000 documents takes 25 seconds instead of 9 hours." — Robert S., Germany