"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


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.


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.


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
  • The first picture uses the JPG format, the second uses PNG
Output (HTML document) - as shown in Mozilla Firefox
example 2 HTML
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
Numbered/unnumbered lists ✓/✓
Other content
External Hyperlinks
Internal Links (Bookmarks)
Picture data extraction
Extracted picture formats BMP/EMF/JPG/PICT/PNG/WMF
Picture data conversion The distribution may include complimentary and unsupported code to convert pictures to 'web-ready' formats.
Picture embedding Data URI (JPG/PNG)
Supported picture storage types Binary/Hexadecimal
CSS based document minimizer
Advanced features
Custom post processing

Prices below are per developer seat.

35 €
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+
① Single Developer License and Server Deployment License terms are explained here
Subscription cancellation

Released 5 May 2024



The "Getting Started" user guide


API Docs

Online API documentation


Release Notes

Enhancements and bug fixes



Frequently Asked Questions



Support and sales inqueries



Technical articles and announcements

Released 5 May 2024


Free demo version:

Download »


Installer for registered users:

Download »


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


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


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


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.


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.


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