Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
15 lines (10 sloc) 0.296 kB
#!/usr/bin/env ruby
# coding: utf-8
# Extract metadata only
require 'rubygems'
require 'pdf/reader'
filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cross_ref_stream.pdf"
PDF::Reader.open(filename) do |reader|
puts reader.info.inspect
puts reader.metadata.inspect
end
Jump to Line
Something went wrong with that request. Please try again.