Method: HexaPDF::Filter::Crypt.decoder

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

.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