Sha256: 90e42adcbdd19d8fcb789cc9539af6780431f5a5fadfd8fbf0b84f172aba8dc9

Contents?: true

Size: 523 Bytes

Versions: 10

Compression:

Stored size: 523 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

#
class PDF::Reader
  module Filter # :nodoc:
    # implementation of the LZW stream filter
    class Lzw
      def initialize(options = {})
        @options = options
      end

      ################################################################################
      # Decode the specified data with the LZW compression algorithm
      def filter(data)
        data = PDF::Reader::LZW.decode(data)
        Depredict.new(@options).filter(data)
      end
    end
  end
end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
pdf-reader-2.6.0 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.5.0 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.4.2 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.4.1 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.4.0 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.3.0 lib/pdf/reader/filter/lzw.rb
pdf-reader-2.2.1 lib/pdf/reader/filter/lzw.rb
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.4.0/gems/pdf-reader-2.2.0/lib/pdf/reader/filter/lzw.rb
embulk-input-druginfo_interview_form-0.1.0 vendor/bundle/ruby/2.5.0/gems/pdf-reader-2.2.0/lib/pdf/reader/filter/lzw.rb
pdf-reader-2.2.0 lib/pdf/reader/filter/lzw.rb