module HexaPDF::Filter::LZWDecode

Implements the LZW filter.

Since LZW uses a tightly packed bit stream in which codes are of varying bit lengths and are not aligned to byte boundaries, this filter is not as fast as the other filters. If speed is a concern, the FlateDecode filter should be used instead.

See: HexaPDF::Filter, PDF2.0 s7.4.4

Public Class Methods

decoder(source, options = nil)
encoder(source, options = nil)