Module: PDF::Core::Filters::FlateDecode

Defined in:
lib/pdf/core/filters.rb

Class Method Summary collapse

Class Method Details

.decode(stream, _params = nil) ⇒ Object



19
20
21
# File 'lib/pdf/core/filters.rb', line 19

def self.decode(stream, _params = nil)
  Zlib::Inflate.inflate(stream)
end

.encode(stream, _params = nil) ⇒ Object



15
16
17
# File 'lib/pdf/core/filters.rb', line 15

def self.encode(stream, _params = nil)
  Zlib::Deflate.deflate(stream)
end