ScroogeXHTML 6.11 – fast RTF to HTML / XHTML converter

Habarisoft is pleased to announce the release of ScroogeXHTML 6.11, a library for Free Pascal and Delphi, which converts Rich Text Format (RTF) to HTML5, HTML 4.01 and XHTML.

The new release introduces support for the SLF4P logging facade library for Pascal (available on GitHub) and a new option to create output documents without indentation.

A off-line demo version, the “Getting Started” guide (PDF) and the complete API documentation are available.

scrooge_portrait_logo_2016

Daraja Framework RESTful extension 2.1 released

Daraja Framework is a free open source library for Object Pascal, based on the stand-alone HTTP server in Internet Direct (Indy).

In the past, the separate “experimental” RESTful extension library only compiled with Delphi, as it used anonymous methods.

With version 2.0 / 2.1, the RESTful extension library now also compiles with Free Pascal, where it uses procedural types instead of anonymous methods.

In projects which must be single-source for Delphi and Free Pascal, usage of procedural types can be enforced by defining the symbol DARAJA_RESTFUL_COMPATIBLE.

 

Continue reading

ScroogeXHTML for the Java™ platform 6.0 – fast RTF to HTML5 conversion

Habarisoft released version 6.0 of its RTF to HTML5 and XHTML converter library, ScroogeXHTML for the Java™ platform.

The new major version resolves 5 bugs and introduces more than 30 enhancements and new features.

A short introduction to major changes is available on the ScroogeXHTML home page, in the Getting Started (PDF documentation), in the API documentation, and in this blog post.

You can evaluate the final release with the online converter demo, which now displays the configuration property values of the converter, and allows to modify many of them.

Bildschirmfoto am 2016-07-01 um 09.37.29

Connect Delphi and Free Pascal applications with Payara Server 4.1

Payara Server is an open-source application server derived from GlassFish Server Open Source Edition. If you need to exchange data between Delphi or Free Pascal code and Payara Server, you can follow these steps for a quick demonstration of the Habari Client for OpenMQ library from Habarisoft. This native library uses the platform-independent STOMP wire protocol for asynchronous, bidirectional message exchange with popular message brokers, including MQ 5.1.1, the default message broker in Payara Server 4.1.

Continue reading

Connect Delphi and Free Pascal applications with WildFly 10 Final

Earlier this year, Red Hat released WildFly 10 Final, a free and open source application server for the Java platform. If you need to exchange data between Delphi or Free Pascal code and WildFly 10, you can follow these steps for a quick demonstration of the Habari Client for Artemis library from Habarisoft. This native library uses the platform-independent STOMP wire protocol for asynchronous, bidirectional message exchange with popular message brokers, including the default message broker included in WildFly 10, Apache ActiveMQ Artemis.

Continue reading

ScroogeXHTML for the Java™ platform beta version 6.0b4

Habarisoft released public beta 6.0b4 of its RTF to HTML5 and XHTML converter library, ScroogeXHTML for the Java™ platform. You can evaluate the new beta version with the online converter demo.

The new beta version includes bug fixes for multi-paragraph text in table cells and character property reset, and introduces a new property for improved control over conversion of blue/underlined text to hyperlinks.

A short introduction to major changes is available in this blog post.

If your free upgrade upgrade period has expired, please contact Habarisoft to receive a renewal discount of up to 50%.

scrooge_portrait_logo_2016

ScroogeXHTML is also available for Delphi and Free Pascal.

ActiveMQ Artemis 1.3 released

The Apache Software Foundation released ActiveMQ Artemis 1.3. The new release includes feature complete OpenWire, LDAP ActiveMQ 5.x modules and initial JDBC storage implementation.

About Apache ActiveMQ Artemis:
The Apache ActiveMQ Artemis message broker includes AMQP protocol support, OpenWire support for ActiveMQ 5 clients, STOMP protocol support, HornetQ Core protocol support for HornetQ 2.4,2.5 clients, JMS 2.0 and 1.1 support.

ActiveMQ Artemis client library for Delphi and Free Pascal

Habari Client for Artemis is a library for Delphi and Free Pascal which provides access to the ActiveMQ Artemis open source message broker. Habari Client libraries use STOMP for asynchronous communication and are available for six different message brokers.

habari_logo_2016

 

ScroogeXHTML for the Java™ platform beta version 6.0.0b3

Habarisoft released the public beta of version 6.0 of its RTF to HTML5 converter library, ScroogeXHTML for the Java™ platform. Library installers (with and without full source code) are available for registered users. You can also evaluate the beta version with the online converter demo. A short introduction to major changes is available in this blog post.

If your free upgrade upgrade period has expired, please contact Habarisoft to receive a renewal discount of up to 50%.

scrooge_portrait_logo_2016

ScroogeXHTML is also available for Delphi and Free Pascal.

ScroogeXHTML for the Java™ platform 6.0: new features

The upcoming 6.0 release of ScroogeXHTML for the Java™ platform introduces useful new features. Here is a short overview:

Embedding images with HTML Data URI scheme

The traditional MemoryPictureAdapter class in ScroogeXHTML for the Java platform generates image link elements which point to a resource location <img src=”…”>. This keeps the document small, but requires making the image resources accessible for the web browser at the given location.

In some cases however, it is useful to embed the whole image in-line in the web page as if they were external resources.

The new MemoryPictureAdapterBase64 class returns Data URIs for small JPEG and PNG images. By default, the size threshold is set to 32 kB.

Usage example:

scrooge = new ScroogeXHTML();
scrooge.setConvertPictures(true);
PictureAdapter adapter = new MemoryPictureAdapterBase64();
scrooge.setPictureAdapter(adapter);

The new class inherits from the old MemoryPictureAdapter, and will return the inherited result for images which exceed the size limit.

Data URIs are fully supported by most major browsers, and partially supported in Internet Explorer and Microsoft Edge.

Event listeners for DOM post processing

The converter internally uses a XML DOM tree to create the HTML document structure. Before converting the DOM to the result HTML5 String, the converter calls a sequence of post processing handlers, which apply optimizations and custom modifications on the DOM tree. Post processing handlers must implement the PostProcessListener interface.

The converter stores the event handlers in its PostProcessListeners property which is a list of PostProcessListener implementations. By default, the converter library creates and assigns post process handlers to perform these tasks

  • strip empty (whitespace-only) text nodes
  • strip empty span nodes
  • strip attribute-less span nodes
  • replace empty paragraph (<p>) nodes with <br> nodes

These default PostProcessListener implementations are located in the com.habarisoft.scroogexhtml.tidy package and use XPath to perform the DOM modification (see Stack Overflow example code).

Application code may create and add more post process listeners as needed.

On-line demo

The new demo page https://www.scroogexhtml.com/sxd6snap/ allows to upload and convert RTF files.

scrooge_portrait_logo_2016