"This is an excellent unique product that has saved us many hours of work." — Stewart S., UK

ScroogeXHTML for Object Pascal

Fast and compact RTF to HTML5/HTML/XHTML converter library

Overview

ScroogeXHTML for Object Pascal is a library which can convert a subset of the RTF standard to XHTML and HTML.

It converts text attributes including background and highlight colors, paragraph attributes including alignment (left, right, centered, justified) and paragraph indent (left, right, first line) and simple numbered or unnumbered lists.

Unicode conversion allows multi-language documents, including simplified and traditional Chinese, Korean and Japanese.

CSS and default font settings instead of in-place formatting help to create optimized documents.

Limitations

The library supports a limited subset of the RTF standard. If you are unsure about support for a specific conversion feature, please contact us. Some of the document elements which will not be converted are:

  • Tabulators (a tab character will be replaced by a sequence of non breaking spaces)
  • Tables

Embedded images

Support for the extraction of raw data of embedded images is included. Conversion of pictures to a web-ready format may require third-party libraries. Complimentary conversion code is included for WMF to PNG conversion (Delphi only). Version 7.2 introduced embedding of PNG and JPG pictures as Data URIs.

Speed

With a throughput of up to several MB per second, ScroogeXHTML for Object Pascal is one of the fastest solutions available.

Conversion example with embedded images

Input (RTF document) - as shown in MS Wordpad
example 2 RTF
Notes
  • The first picture uses the JPG format, the second uses PNG
Output (HTML document) - as shown in Mozilla Firefox
example 2 HTML
Notes
Text properties
Bold/italic/underlined ✓/✓/✓
Foreground/background/highlight color ✓/✓/✓
Subscript/superscript ✓/✓
Strikethrough/hidden ✓/✓
Unicode / DBCS text ✓/✓
LTR/RTL text ✓/✓
Language attribute
Paragraph properties
Left/right/centered/justified alignment ✓/✓/✓/✓
Left/right/first line indent ✓/✓/✓
Space before/after ✓/✓
Background color
Box border
Lists
Numbered/unnumbered lists ✓/✓
Other content
External Hyperlinks
Internal Links (Bookmarks)
Pictures
Picture data extraction
Extracted picture formats EMF/JPG/PICT/PNG/WMF
Picture data conversion The distribution may include complimentary and unsupported 'picture adapter' code to convert pictures to 'web-ready' formats. WMF to PNG conversion is not supported for Free Pascal.
Picture embedding Data URI
Optimization
CSS based document minimizer
Advanced features
Custom post processing

Prices below are per developer seat.

  INDIE
35 €
BUSINESS
95 €
Permitted use Individual Organization
Lifetime license
Redistribution in single-user applications
Basic support included
Updates and upgrades included
Instant electronic delivery
Library source code included
Server Deployment License discount  
Early access to development snapshots  
Supported compilers Delphi 2009+
Free Pascal 3.2+
Delphi 2009+
Free Pascal 3.2+
  Subscribe
Subscribe
① Single Developer License and Server Deployment License terms are explained here
Subscription cancellation

Released 4 April 2024

book

Manual

The "Getting Started" user guide

search

API Docs

Online API documentation

list

Release Notes

Enhancements and bug fixes

help_outline

FAQ

Frequently Asked Questions

alternate_email

Contact

Support and sales inqueries

pages

Blog

Technical articles and announcements

Released 4 April 2024

get_app

Free demo version:

Download »

get_app

Installer for registered users:

Download »

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 is not available. To check if the library meets your requirements, you can try the free demo application.

Developer License

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.

Source Code Distribution

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.

Server Deployment License

help_outline

License types (Single Developer License and Server Deployment License) are explained on the page /scroogexhtml_license.html.

ScroogeXHTML License Types

No. A Server Deployment License covers all applications on the server.

help_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.

Picture Support

No, 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. The distribution may include complimentary and unsupported 'picture adapter' code to convert and embed pictures.

More questions and answers are included in the Getting Started document (PDF).