From: Austin Ziegler Date: 2005-09-25T22:38:47+09:00 Subject: Re: image in pdf On 9/25/05, Nick wrote: > i get this error using fpdf > > pdf.Image('public/images/products/PIDVR108.jpg',20,200,100,'JPG') > > error: > undefined local variable or method `data' for > #/lib/fpdf/fpdf.rb:1317:in `parsejpg' > /lib/fpdf/fpdf.rb:821:in `Image' > /app/controllers/product_controller.rb:41:in `gen_pdf' > /app/controllers/product_controller.rb:27:in `pdf' > script/server:49when i change the path to something else (i enter a wrong > path): then no such directory or file,so he find the file.anyone can help me Which operating system are you using? Can you try the same thing with PDF::Writer (gem install pdf-writer)? It's a different API, but the sort of message returned will be informative. It's also clearly documented how to do headers and footers in the 95-page manual. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca