ScroogeXHTML for Object Pascal converts RTF (Rich Text Format) documents to HTML5 and XHTML. Major changes in this release:
- The
ConvertFields
property is obsolete, therefore it is now deprecated. - The
ConvertHyperlinks
property is enabled by default. - The
ConvertSpaces
property is enabled by default. - Default replacement fonts “Courier” and “Times” are now “Courier New” and “Times New Roman”.
- Add support for document language detection, based on
deflang
RTF token. - Add the
lang
-attribute to the HTML root element (unconditionally).
Also, all units with optional or experimental code which were missing in version 9.0 are now included in the directory source/optional
.
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/9.1/ScroogeXHTMLDemo.zip
- User guide: https://www.habarisoft.com/scroogexhtml/9.1/docs/ScroogeXHTMLGettingStarted.pdf
- Release notes: https://www.habarisoft.com/scroogexhtml/9.1/docs/api/version.html
Other platforms
ScroogeXHTML is also available for the Java platform. (different feature set)

Discover more from Habarisoft Blog
Subscribe to get the latest posts sent to your email.