You are not logged in.
require 'pdf/writer'
pdf = PDF::Writer.new
pdf.image('/home/max/pics/kiwi.png')
Results in:
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'
Why?
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)
Offline
Hello,
I don't know about this error, but PDF::Writer is unsupported and it is recommended to use Prawn[1].
Couldn't the problem be that you are using Ruby 1.9.1 and PDF::Writer written for 1.8(just a guess).
Sebastian
[1] http://prawn.majesticseacreature.com/
Offline