Sha256: 4a450e66b3db90f6afd21b2139edf6469c952d7804e88e4f123ffad272ba39d1
Contents?: true
Size: 619 Bytes
Versions: 5
Compression:
Stored size: 619 Bytes
Contents
require "rubygems" require "pdf/reader" require "pdf/inspector/text" require "pdf/inspector/xobject" require "pdf/inspector/graphics" require "pdf/inspector/page" module PDF class Inspector def self.analyze(output,*args,&block) obs = self.new(*args, &block) PDF::Reader.string(output,obs) obs end def self.analyze_file(filename,*args,&block) analyze(File.open(filenmame, "rb") { |f| f.read },*args,&block) end def self.parse(obj) PDF::Reader::Parser.new( PDF::Reader::Buffer.new(StringIO.new(obj)), nil).parse_token end end end
Version data entries
5 entries across 5 versions & 1 rubygems