module HexaPDF::Filter::Predictor

Implements the predictor for the LZWDecode and FlateDecode filters.

Although a predictor isn't a full PDF filter, it is implemented as one in HexaPDF terms to allow easy chaining of the predictor.

See: PDF1.7 s7.4.4.3, s7.4.4.4, partners.adobe.com/public/developer/en/tiff/TIFF6.pdf (p64f), www.w3.org/TR/PNG-Filters.html

Public Class Methods

decoder(source, options) click to toggle source

See HexaPDF::Filter

# File lib/hexapdf/filter/predictor.rb, line 69
def self.decoder(source, options)
  execute(:decoder, source, options)
end
encoder(source, options) click to toggle source

See HexaPDF::Filter

# File lib/hexapdf/filter/predictor.rb, line 74
def self.encoder(source, options)
  execute(:encoder, source, options)
end