Tuesday 22 December 2009

Converting JPG to PDF under Linux...As simple as 1 2 3

Never thought it could be as easy and simple as this:

1- Under Ubuntu ( I use it) Install ImageMagick through the command:
sudo apt-get install imagemagick


2- Go the JPG directory ( The directory in which you store your JPG)


3- Open Terminal ( Applications >> Accessories >> Terminal ) and type the following command:

convert *.jpg name.pdf

Where name is the desired PDF's name.


That's it.


P.S. If you don't want to install ImageMagick, ubuntu guarantees you even an easier solution:

Open the JPG using the default Gnome Image viewer (Eye of Gnome), click on File, Choose Print, then choose "Print to File" from the available printers, Press Print, and Bingo... You have a PDF copy of your JPG.