class PDF::Reader::Filter
def initialize (name, options = nil)
returned untouched. At this stage PDF::Reader has no need to decode images.
Filters that are only used to encode image data are accepted, but the data is
creates a new filter for decoding content.
###############################################################################
def initialize (name, options = nil) @options = options case name.to_sym when :ASCII85Decode then @filter = :ascii85 when :ASCIIHexDecode then @filter = :asciihex when :CCITTFaxDecode then @filter = nil when :DCTDecode then @filter = nil when :FlateDecode then @filter = :flate when :JBIG2Decode then @filter = nil when :JPXDecode then @filter = nil when :LZWDecode then @filter = :lzw when :RunLengthDecode then @filter = :runlength else raise UnsupportedFeatureError, "Unknown filter: #{name}" end end