Wednesday 1 March 2017

How to convert JPG into PDF on Ubuntu


I just found another cool trick you can do with ubuntu, on ubuntu you can convert JPG file into PDF file, you can do this from the command line, pretty amazing huh?

There is command called 'convert' on ubuntu that can be use to convert lots of stuff, including JPG to PDF, but first let's install 'imagemagick' package to make sure everything runs smoothly.
sudo apt-get imagemagick
Okay we are ready to convert JPG file and turn it into PDF file, you can use 'convert' command like this:
convert [jpg file] [pdf file]
Example:
convert nude.jpg output.pdf
convert photo.jpg photo-album.pdf
It is also possible to add multiple JPG files and converted into a single PDF file, here's an example:
convert photo1.jpg photo2.jpg photo3.jpg photo-album.pdf

~ have fun ~

Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.