images to pdf

  • Thread starter Buddy Lindsey, Jr.
  • Start date
B

Buddy Lindsey, Jr.

[Note: parts of this message were removed to make it a legal post.]

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.
 
M

Martin Boese

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







--
Internet Technologies Angola / MAXNET
Tel: +244 (227) 286 000 / (924) 770 290 / (924) 770 291
Skype: internet-technologies-angola
Mobile: Namibia +264 816 438776 (Angola +244 927 986444)
Mail: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top