Sha256: 7a0aa10ef9c1de41783f263d9b863d64384780ccefcea334e2bfef86866c4916

Contents?: true

Size: 744 Bytes

Versions: 24

Compression:

Stored size: 744 Bytes

Contents

# encoding: utf-8

# prawn/core/filters.rb : Implements stream filters
#
# Copyright February 2013, Alexander Mankuta.  All Rights Reserved.
#
# This is free software. Please see the LICENSE and COPYING files for details.

require 'zlib'

module PDF
  module Core
    module Filters
      module FlateDecode
        def self.encode(stream, params = nil)
          Zlib::Deflate.deflate(stream)
        end

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

      # Pass through stub
      module DCTDecode
        def self.encode(stream, params = nil)
          stream
        end

        def self.decode(stream, params = nil)
          stream
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
pdf-core-0.6.1 lib/pdf/core/filters.rb
pdf-core-0.6.0 lib/pdf/core/filters.rb
pdf-core-0.5.1 lib/pdf/core/filters.rb
pdf-core-0.5.0 lib/pdf/core/filters.rb
pdf-core-0.4.0 lib/pdf/core/filters.rb
pdf-core-0.3.1 lib/pdf/core/filters.rb
pdf-core-0.3.0 lib/pdf/core/filters.rb
pdf-core-0.2.5 lib/pdf/core/filters.rb
pdf-core-0.2.4 lib/pdf/core/filters.rb
pdf-core-0.2.2 lib/pdf/core/filters.rb
pdf-core-0.2.1 lib/pdf/core/filters.rb
pdf-core-0.2.0 lib/pdf/core/filters.rb
pdf-core-0.1.6 lib/pdf/core/filters.rb
pdf-core-0.1.4 lib/pdf/core/filters.rb
pdf-core-0.1.3 lib/pdf/core/filters.rb
pdf-core-0.1.1 lib/pdf/core/filters.rb
pdf-core-0.1.0 lib/pdf/core/filters.rb
pdf-core-0.0.3 lib/pdf/core/filters.rb
pdf-core-0.0.2 lib/pdf/core/filters.rb
prawn-0.14.0 lib/pdf/core/filters.rb