Module: HexaPDF::Filter::Crypt

Defined in:
lib/hexapdf/filter/crypt.rb

Overview

This filter module implements the Crypt filter. The only supported part is using the Identity filter.

Class Method Summary collapse

Class Method Details

.decoder(source, options) ⇒ Object

See HexaPDF::Filter



47
48
49
50
51
52
53
# File 'lib/hexapdf/filter/crypt.rb', line 47

def self.decoder(source, options)
  if !options || !options.key?(:Name) || options[:Name] == :Identity
    source
  else
    raise FilterError, "Handling of Crypt filters besides Identity is not implemented"
  end
end