Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
13 lines (8 sloc) 0.265 kb
#!/usr/bin/env ruby
# coding: utf-8
# get direct access to PDF objects
require 'pdf/reader'
filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cairo-unicode.pdf"
reader = PDF::Reader.new(filename)
puts reader.objects[3]
puts reader.objects[4]
Jump to Line
Something went wrong with that request. Please try again.