I'm trying to install the yob pdf reader: https://github.com/yob/pdf-reader#readme
I'm following the directions there and do:
gem install pdf-reader
reader = PDF::Reader.new("1.pdf")
uninitialized constant PDF (NameError)
If it's a pure ruby script, you may be missing the following at the beginning:
require 'rubygems' require 'pdf-reader'
You can also specify the version of the gem that you want to require, in case you have multiple versions installed:
require 'rubygems' gem 'pdf-reader', "~> 0.10.0" require 'pdf-reader'