Friday, April 4, 2014

Converting images to PDF in Linux


Simplest way to convert images to PDF file:

convert /path_to_images/*.png document.pdf

"convert" command is part of the ImageMagick package, most Linux distributions come with.

It's possible to reduce the file size by changing color map with "-colors" option. For example, changing number of colors used in PDF images to 256:

convert /path_to_images/*.png -colors 256 document.pdf

1 comment:

  1. Great help, thanks for adding up to the knowledge its good to read well ordered and simple. I would like to enlighten you with the idea of magento development agency and how it helps your business grow, give it a go Thanks!

    ReplyDelete