Convert multiple image files to single PDF (Batch convert image to PDF) in Ubuntu

You can convert multiple image (jpg/png/gif….) files to a single PDF in Ubuntu by the imagemagick package. Here is step-by-step guideline:

1. Install imagemagick from Ubuntu Software Center

Or, in the terminal:

sudo apt-get install imagemagick

2. Put all your image files in a single directory.

3. Open a terminal and go to this directory:

cd <directory-location>

4. Enter following command:

convert * output.pdf

Where output.pdf is the desired single PDF file. It’s easier than those methods in windows, isn’t it?😛

Reference: Thanks to this article in the internet🙂

9 thoughts on “Convert multiple image files to single PDF (Batch convert image to PDF) in Ubuntu

  1. well, it is, and it isn’t; I got a nice PDF with one easily remembered command, but every second page is a blank partial page, I assume left over from some undisclosed trimming of the ppm files leaving the left-over as a junk part-page. Is there any way to avoid this? Is there a particular geometry that the pages must be to fit? And are the pages now letter or a4? See, already it’s not as easy as it was😉

  2. The PDF that it gave me had a massive and non-standard page size (43.12 x 31.74 inches!), which made it so that merging with normal PDFs (say, page size A4) produced a huge mess!

  3. imagemagick has a memory leak. If one tries a batch of more than a handful of files, the PC ends up swapping most of the time, CPU utilisationn hits the roof and the task takes forever. Also using “*” rather than “*.jpg” results in time lost in error management. It even ‘tries’ to convert .mp4 – it looks like a frame at a time, producing countless files😦
    Best to convert .jpg to .pdf individually and concatenate the .pdf.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s