#!/usr/pkg/bin/ruby193

# this executable is deprecated, use pdf_callbacks instead

require 'rubygems'

$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")

require 'pdf/reader'

receiver = PDF::Reader::PrintReceiver.new

if ARGV.empty?
  PDF::Reader.new.parse($stdin, receiver)
else
  PDF::Reader.file(ARGV[0], receiver)
end
