pdf = PDF::Writer.new(:paper => “A4”, :orientation => :landscape)
y = pdf.absolute_top_margin - 15
x = pdf.absolute_left_margin - 22
pdf.add_image_from_file(“public/images/rails.png”, x, y)
Thanks Dom
But I used this command and its not working. One conclusion I have
reached is that the pdfwriter.rb file I downloaded from Simple PDF Writer for ruby does not support images. Its mentioned
in that site as its limitations.Can you tell me what should I do and if
there is any download available which supports images too, please tell
me
It’ll also install pdf writer, U can try doing that…
U can install ruport like typing this in yr command prompt
gem install ruport --include-dependencies
Thank You sir,
I installed ruport as you told. Also I have pdfwriter gem installed. But
still I cant get the images inserted into pdf. As I already mentioned
the pdfwriter.rb file I am using(inside models) doent support images it
supports aonly simple pdf. So is there any other class file that I can
use to get the images inserted into pdf?