Sha256: e7ca4081931e887fe5ca6d06b716d6bfd54b09ca92c703976e186a1538751757
Contents?: true
Size: 482 Bytes
Versions: 15
Compression:
Stored size: 482 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' $LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib") require 'pdf/reader' receiver = PDF::Reader::PrintReceiver.new if ARGV.empty? browser = PDF::Reader.new(StringIO.new(ARGF.read)) else browser = PDF::Reader.new(ARGV[0]) end browser.pages.each do |page| puts puts "********************************" puts "page #{page.number}" puts page.attributes.inspect puts "********************************" page.walk(receiver) end
Version data entries
15 entries across 15 versions & 1 rubygems