Is there any way to batch convert .jpg files into single .pdf files?


Never forget your little fellow Automator, sitting in a hard drive near you :)

Launch Automator, create a new workflow. Now you need to add two actions:

  1. In the "Files & Folders" select Ask for Finder Items and drag it.

  2. In the PDFs Category, find "New PDF from Images" and also drag it.

Your workflow should look like this:


Now read the options for each Action and customize accordingly. Investigate similar actions (especially in the Files & Folders category) and perhaps the Photos if you want to transform your images from JPG to something else. In fact, go ahead and look all over automator, there are a lot of interesting things there. :)

When you're satisfied with your Workflow, click "Run" on the top right corner. Watch the magic happens and depending upon the number of items and your CPU power, you might go grab a coffee/tea.

| improve this answer | |
  • 1
    First sentence alone deserves the +1! – Jari Keinänen Apr 23 '11 at 16:44
  • it does only generate a single pdf which contains all pictures stored in the folder. How to create a single pdf of each picture file in the folder? Regards Chris – user19087 Feb 21 '12 at 23:09
  • @chris that would mean a new automator workflow, post a new question :) – Martin Marconcini Apr 18 '12 at 14:08
  • 2
    @user19087 brew install imagemagick and then do something like for pic in *.jpg; do convert $pic $pic.pdf; done – kqw Feb 6 '15 at 16:41
  • automator you say... I did not know how useful that tool was until now! – Tcanarchy Sep 23 '15 at 17:00

I'm more at ease with commandline tools myself. ImageMagick is great for this. You can install IM through Homebrew:

brew install imagemagick

After that you can simply do this in a Terminal:

convert *.jpg output.pdf

and if the resulting PDF is a bit too big you can try:

convert -quality 60 *.jpg output.pdf

Of course ImageMagick also works on other Unix systems, and even on cygwin.

| improve this answer | |
  • 3
    In case PDF is generated with rotated images, use convert -quality 60 -rotate 90 *.jpg output.pdf – Ivan Mir Dec 30 '16 at 15:58
  • This worked good for me but it does convert them all into one PDF file. If you want a PDF for every jpg you need to have a loop in your command like you suggested in the comment above. – ArchonOSX Mar 22 '18 at 19:10

I don't know if this works with .jpg files but the easiest way I know to convert text is to select print in the file menu, then in the lower left of the print menu select save as PDF.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .