How to convert images to PDF in Linux

In Linux there is a command convert which can be used to convert a image file to PDF(Portable Document Format).


convert imagefile.jpg scan.pdf

To convert multiple files with .jpg extension use below command

convert *.jpg scanned_docs.pdf

We can install convert command using

yum install ImageMagick

Using compression

convert -density 100x100 -quality 60 -compress jpeg input.pdf output.pdf
This entry was posted in Linux, Tips tricks. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s