Sha256: e2c378a507be5d9aa0c38fb7164c0c23ae77598e65412e9f971dbd65405436ba

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

# coding: utf-8

class PDF::Reader
  # A simple receiver that prints all operaters and parameters in the content
  # stream of a single page.
  #
  class PrintReceiver

    attr_accessor :callbacks

    def initialize
      @callbacks = []
    end

    def respond_to?(meth)
      true
    end

    def method_missing(methodname, *args)
      puts "#{methodname} => #{args.inspect}"
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
pdf-reader-2.1.0 lib/pdf/reader/print_receiver.rb
pdf-reader-2.0.0 lib/pdf/reader/print_receiver.rb
pdf-reader-2.0.0.beta1 lib/pdf/reader/print_receiver.rb
pdf-reader-1.4.1 lib/pdf/reader/print_receiver.rb
pdf-reader-1.4.0 lib/pdf/reader/print_receiver.rb
panjiva-pdf-reader-1.3.0 lib/pdf/reader/print_receiver.rb
pdf-reader-1.3.3 lib/pdf/reader/print_receiver.rb
pdf-reader-1.3.2 lib/pdf/reader/print_receiver.rb
pdf-reader-1.3.1 lib/pdf/reader/print_receiver.rb
pdf-reader-1.3.0 lib/pdf/reader/print_receiver.rb