module HexaPDF::Filter::BrotliDecode

Implements the Brotli filter using the brotli library which must be installed manually.

The BrotliDecode specification is not yet available as a standard but will be in the near future. Therefore it is recommended to wait using it for encoding streams until most of the PDF ecosystem has support for it.

See: HexaPDF::Filter

Public Class Methods

decoder(source, options = nil)

See HexaPDF::Filter

Note that the brotli gem currently doesn’t support a streaming decoder. This means that the whole source must be read and decoded at once.

encoder(source, options = nil)

See HexaPDF::Filter

As with ::decoder a usable streaming encoder is not available.