Good morning,

I am trying to use the pdf-writer ruby gem via NetBeans, but I'm having
trouble doing it.  If I run the 'hello.rb' demo program without updating
it to use rubygems, I get the following error:

/home/wpwood/Desktop/pdf_writer-1.1.8/demo/hello.rb:16:in `require': no
such file to load -- pdf/writer (LoadError)
        from /home/wpwood/Desktop/pdf_writer-1.1.8/demo/hello.rb:16

I then update it to use rubygems by changing the 'require' section of
the code to:

require 'rubygems'
gem 'pdf-writer'

but when I do that, I get an error:

/home/wpwood/Desktop/pdf_writer-1.1.8/demo/hello.rb:14: uninitialized
constant PDF (NameError)

on the line:

pdf = PDF::Writer.new

I'm fairly new to Ruby, and new to trying to use gems directly, and it's
certainly possible that I'm doing something wrong.  So, can anyone tell
me what I'm doing wrong?

Thanks,
- Bill
-- 
Posted via http://www.ruby-forum.com/.