Module: HexaPDF::Filter::PassThrough

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

Overview

The PassThrough filter just passes the source on unmodified. This is enough for basic read-write capabilities but not if the unfiltered bytes are needed.

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

Class Method Summary collapse

Class Method Details

.decoder(source, _ = nil) ⇒ Object

See HexaPDF::Filter



47
48
49
# File 'lib/hexapdf/filter/pass_through.rb', line 47

def self.decoder(source, _ = nil)
  source
end

.encoder(source, _ = nil) ⇒ Object

See HexaPDF::Filter



52
53
54
# File 'lib/hexapdf/filter/pass_through.rb', line 52

def self.encoder(source, _ = nil)
  source
end