class PDF::Inspector

Public Class Methods

analyze(output,*args,&block) click to toggle source
# File lib/pdf/inspector.rb, line 11
def self.analyze(output,*args,&block) 
  obs = self.new(*args, &block)
  PDF::Reader.string(output,obs)
  obs  
end
analyze_file(filename,*args,&block) click to toggle source
# File lib/pdf/inspector.rb, line 17
def self.analyze_file(filename,*args,&block)
  analyze(File.open(filename, "rb") { |f| f.read },*args,&block)
end
parse(obj) click to toggle source
# File lib/pdf/inspector.rb, line 21
def self.parse(obj)
  PDF::Reader::Parser.new(
    PDF::Reader::Buffer.new(StringIO.new(obj)), nil).parse_token
end