require 'pdf/writer' pdf = PDF::Writer.new pdf.image('/home/max/pics/kiwi.png')
RuntimeError: Unsupported Image Type from /home/max/.gem/ruby/1.9.1/gems/pdf-writer-1.1.8/lib/pdf/writer/graphics.rb:668:in `image'
edit - can't get rid of that mysterious newline in the code snippet ... weird? oh well, you get the idea
Last edited by synthead (2012-08-21 22:48:47)
Touch my kernel
I don't know about this error, but PDF::Writer is unsupported and it is recommended to use Prawn.
Couldn't the problem be that you are using Ruby 1.9.1 and PDF::Writer written for 1.8(just a guess).