Images to pdf

Hi All,

I am wanting to write a script to convert a series of images into a pdf
file. The main question is what would be the best ruby gem to use for
doing
this? I was looking at prawn, but not sure it would fit best. I have
heard
something about imagemagik, but not too sure. Any ideas and thoughts
would
be appreciated.

Thanks.


Buddy Lindsey


http://www.twitter.com/buddylindsey

Hi Buddy,

While I’ve never done this type of project below is a link to help get
you
started.

http://railscasts.com/episodes?search=pdf

On Tue, 2 Nov 2010 08:53:45 +0900
“Buddy Lindsey, Jr.” [email protected] wrote:

Hi All,

I am wanting to write a script to convert a series of images into a
pdf file. The main question is what would be the best ruby gem to use
for doing this? I was looking at prawn, but not sure it would fit
best. I have heard something about imagemagik, but not too sure. Any
ideas and thoughts would be appreciated.

ImageMagick’s (http://www.imagemagick.org/) command line tool simply
type (or run with ruby’s system method):

convert image.jpg document.pdf

Using the ruby interface to Imagemagick (rmagick.rubyforge.org):

require ‘rubygems’
require ‘RMagick’
Magick::Image.read(‘image.jpg’).first.write(‘document.pdf’)

Martin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs