Productive Linux


 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Don't have an account?
Sign up to
Forgot your password?

Converting JPG Files to PDF
15 December 2008 @ 12:58 GMT
by Paul

This is beautiful in its simplicity:

convert file1.jpg file2.jpg files.pdf

Turns jpeg files file1.jpg and file2.jpg into a multipage pdf document.

'convert' is part of the imagemagick suite of tools. On Debian based systems (e.g. Ubuntu) it can be installed as:

apt-get install imagemagick
Tags: pdf images

Did you try with 400 jpeg. result: convert toke all the memory by default and after 20min i kill the process!

Posted by Tof on 2009-02-21 22:58:47.

I think it's "imagemagick" instead of "imageimagick".

It worked!! ;)


Posted by Joao on 2010-11-11 12:43:07.

i had the same memory problem with convert.

but it worked to first convert one file at a time, then use pdftk to assemble the individual pdfs.

my input files were hpscan001.png, hpscan002.png, etc. so i typed:

me@myhost:~$ for file in `ls *.png`; do convert $file `basename $file .png`.pdf; done me@myhost:~$ pdftk *.pdf cat output finished-product.pdf

Posted by michael redman on 2011-08-03 16:38:06.
Comments disabled