Sha256: d57da83864f79ea6fe1ccba523dc4e5a6919c5caa0083f91bef5cff0c5b7f6c4

Contents?: true

Size: 653 Bytes

Versions: 24

Compression:

Stored size: 653 Bytes

Contents

require "rubygems"
require "pdf/reader"
require "pdf/inspector/text" 
require "pdf/inspector/xobject"
require "pdf/inspector/extgstate"
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(filename, "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

24 entries across 24 versions & 10 rubygems

Version Path
pdf-inspector-1.0.2 lib/pdf/inspector.rb
pdf-inspector-1.0.1 lib/pdf/inspector.rb
pdf-inspector-1.0.0 lib/pdf/inspector.rb
yellowlab-pdf-inspector-1.0.0 lib/pdf/inspector.rb
davebenvenuti-prawn-0.11.1.pre vendor/pdf-inspector/lib/pdf/inspector.rb
piglop-prawn-0.10.2.3 vendor/pdf-inspector/lib/pdf/inspector.rb
piglop-prawn-0.10.2.2 vendor/pdf-inspector/lib/pdf/inspector.rb
piglop-prawn-0.10.2.1 vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-0.11.1.pre vendor/pdf-inspector/lib/pdf/inspector.rb
goodwill-prawn-edge-0.10.0 vendor/pdf-inspector/lib/pdf/inspector.rb
alphasights-prawn-0.10.4 vendor/pdf-inspector/lib/pdf/inspector.rb
alphasights-prawn-0.10.3 vendor/pdf-inspector/lib/pdf/inspector.rb
alphasights-prawn-0.10.2 vendor/pdf-inspector/lib/pdf/inspector.rb
alphasights-prawn-0.10.1 vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-core-0.8.4 vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-graph-0.0.2 vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-graph-0.0.1 vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-core-0.7.2 vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-core-0.7.1 vendor/pdf-inspector/lib/pdf/inspector.rb
prawn-layout-0.3.2 vendor/prawn-core/vendor/pdf-inspector/lib/pdf/inspector.rb