ScroogeXHTML for Object Pascal converts RTF (Rich Text Format) documents to HTML5 and XHTML. This release features
- improved picture data extraction and optional conversion1 to data URIs:
- the complimentary picture conversion code has been extended to convert embedded BMP and WMF pictures to PNG, allowing to include them as Base64 encoded data URIs,
- reading pictures stored as binary data from RTF documents which use the \bin token,
- a new property to control generation of
margin-top
andmargin-bottom
styles, - a new property to set additional attributes on the
<p>
element.
Features
- Exports to stand-alone documents or embeddable fragments.
- Minimizes documents using CSS and default font definitions.
- Supports hyperlink fields, bookmarks, multi-language and LTR/RTL text.
- Includes complimentary code for converting and embedding images as Data URIs. Conversion of pictures to a web-ready format may require third-party libraries.
- Includes an API for post-processing of the intermediate DOM-like document.
- Supports logging via slf4p (simple logging facade for Pascal).
- Compatible with Delphi 2009 and newer and Free Pascal 3.2.2.
- Includes full source code.
Resources
- Home page: https://www.scroogexhtml.com/object_pascal.html
- Demo version: https://www.habarisoft.com/scroogexhtml/8.7/ScroogeXHTMLDemo.zip
- User guide: https://www.habarisoft.com/scroogexhtml/8.7/docs/ScroogeXHTMLGettingStarted.pdf
- Release notes: https://www.habarisoft.com/scroogexhtml/8.7/docs/api/version.html
Other platforms
ScroogeXHTML is also available for the Java platform. (different feature set)

- Conversion to data URIs currently requires Internet Direct (Indy). WMF to PNG conversion not included in the library version for Free Pascal. ↩︎
Discover more from Habarisoft Blog
Subscribe to get the latest posts sent to your email.