HexaPDF 1.9.0 - Text shaping et al. Published on

There hasn’t been a news entry for quite some time. So this post details the newest changes in HexaPDF 1.9.0 as well as higlights some of the more important ones of the past releases.

The most notable additions and changes of 1.9.0 are:

  • The document layout engine now supports text shaping by using the great HarfBuzz library! This means that by using a TrueType font and setting the new shaping_engine style property it is now possible to use all OpenType features a font provides.

    The following image illustrates the difference (above without, below with HarfBuzz):

    Sample text shaping image

    This will now allow a wide range of scripts to be correctly shown.

  • The HexaPDF::Layout::TableBox now supports breaking table cells. This means that very high cells don’t lead to a fit error anymore.

  • The ink annotation (sometimes called “scribble” annotation) is now supported, including appearance generation.

Additionally, HexaPDF gained some other nice features recently:

As always, have a look at the changelog for an overview of all changes.