# PDF::Writer errors in Rails

**URL:** <https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219>\
**Category:** Ruby\
**Created:** [March 18, 2006, 12:49am UTC](https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219 "2006-03-18T00:49:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@ray](https://www.ruby-forum.com/u/ray)\
**Post date:** [March 18, 2006, 12:49am UTC](https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219/1 "2006-03-18T00:49:44Z")

</div>

Hi, after failing with a ruby gems install, I’ve just done a manual  
install of PDF::Writer (including the dependancies: Transaction::Simple  
1.3.0 color-tools 1.3.0) and created the following in a Rails  
controller:

require ‘pdf/writer’

def pdf\_test  
p = PDF::Writer.new  
end

and I get the following error: “uninitialized constant PDF”

Anyone know what the problem is?.. the installs went fine.

I’m on Mac OS X 10.4.5

Thanks, Ray

---

<div class="post-metadata">

**Author:** ![ray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@ray](https://www.ruby-forum.com/u/ray)\
**Post date:** [March 20, 2006, 6:44am UTC](https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219/2 "2006-03-20T06:44:46Z")

</div>

On 3/17/06, Ray [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> end  
> How do the demos in the PDF::Writer install go? Do they work?  
> Unit tests?

I’m smelling a path problem on the install. I’m on windows though, so  
path  
issues are differnet, but I also toy with Ubuntu and I’ve been burned on  
the  
path issue a few times.

Hope that helps.

–
