Convert JPG JPEG Files Into Acrobat PDF in Ubuntu Linux
Sponsored Links
I’ve been realized that Linux is so powerful to help my jobs done. For example converting jpg or jpeg files into .pdf files. After searching in Google, I found that I can convert all of my jpg and jpeg files into pdf just using console! Of course, there are many alternatives to convert such files, such as using GUI apps, Gimp and OpenOffice can do that. But I still prefer using console (terminal) because of it’s simplicity. Want to know how? Here we go:
Step 1: Make sure you have imagemagick package installed in your Linux distro.
Step 2: Open your favorite console, go to your jpeg directory.
Step 3: Type convert yourjpgfiles.jpg yournewfile.pdf
You can use wildcards or “*” to convert mass jpg files into single pdf file. That’s it, you already done converting .jpg files into .pdf. Happy converting!
If you still confused with this tutorial, just drop me a comment, and I will help you.

Dayo Said,
December 24, 2008 @ 9:28 pm
This is awesome. Thank you so much!
Beraba Said,
July 24, 2009 @ 3:49 am
Thanks! It worked fine to me…
I have just one doubt… the pdf file became huge, like 100 MB!! And I just converted 5 jpeg files, each one with 1 MB.
Do anyone have a solution for that?
Thank you again!
Imran Farid Said,
September 13, 2009 @ 1:24 pm
DO THIS in command prompt. Just copy paste from here.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
In the above command, you need to change output.pdf[the compress pdf file] and input.pdf[the file you want to compress].
GOOD LUCK! Its Magic
Beraba Said,
September 24, 2009 @ 2:47 pm
Thanks man!!
Sani Said,
January 30, 2010 @ 6:53 pm
Hi
I tried that with the command line but every time my pdf is corrupt or damaged. If i convert one jpg file is ok if i convert multiple jpgs to a pdf file it gives me the damaged pdf file.
could you send me a replay to my email?
best regards
Sani
admin Said,
March 5, 2010 @ 8:43 am
@Sani:
How you do that?
convert yourjpgfiles1.jpg yourjpgfiles2.jpg yourjpgfiles3.jpg yournewfile.pdf
neyas Said,
April 9, 2010 @ 4:28 pm
thanks !!!!!!!! this was very useful!!! Love the power of Linux!!!