Skip to content

Desktop notes

Convert JPEG files to PDF under Linux

One ImageMagick command combines a folder of JPEG files into a single PDF. The same job is possible from any KDE print dialog.

By Jozsef 2 min read

How to convert JPEG files to one PDF

I use Ubuntu, but any Linux distribution with ImageMagick will work.

Requirements

  • ImageMagick. Install it with:
    bash
    sudo apt-get install imagemagick
    

Convert the images

  1. Go to the directory that holds the JPEG files:
    bash
    cd work/directory/path
    
  2. Convert them into one PDF:
    bash
    convert *.jpg foo.pdf
    

That is the whole process.

Other routes

On Windows, PDFCreator is a free tool that creates PDF files from almost any application that can print. It handles more than images.

On Linux, any KDE application can print to PDF, which is the same idea as PDFCreator. Select the JPEG files, open the print dialog, and choose the PDF output.

Sources and further reading