From: RichardOnRails Date: 2010-12-12T13:51:11+09:00 Subject: Problem reading PDF I downloaded/installed the pdf-reader-0.9.0 using gem install. I followed the usage advice from https://github.com/yob/pdf-reader/blob/master/examples/callbacks.rb I posted my code in http://www.pastie.org/1369323 When running my test, I got: Will process PDF files in "K:\_Projects\Ruby\_Ruby_Apps\Taxes\TaxData \Year_End_Gain_Loss_Reporting" Processing 2008_5275.pdf, filesize is 3434672 bytes K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/pdf- reader-0.9.0/lib/pdf/reader/buffer.rb:123:in `index': wrong number of arguments (0 for 1) (ArgumentError) [snip] Incidentally, the PDF file works fine when I open it in Firefox. Any suggestions about how to get PDF-reading working in Ruby?