View Source Mudbrick

API Documentation

Early-stages PDF generator, beelining for:

  • PDF 2.0 support.
  • In-process, pure functional approach.
  • OpenType support.
  • Special characters and ligatures, like ₛᵤ₆ₛ꜀ᵣᵢₚₜₛ for chemical compounds etc.

Currently working:

  • OpenType fonts with ligatures and special characters.
  • Text positioning.
  • Right alignment.
  • Coloured text.
  • JPEG images.
  • Compression.

To do:

  • Other image formats.
  • Font subsetting.
  • Vector graphics.

Installation

def deps do
  [
    {:mudbrick, "~> 0.1.0"}
  ]
end

See also

  • elixir-pdf, a more mature library, supporting AFM instead of OTF fonts, but only the base WinAnsiEncoding and no special characters. Uses a GenServer for state.
  • erlguten, an antiquated Erlang PDF generator.
  • opentype-elixir, used for OTF parsing.
  • ex_image_info, used for image metadata parsing.