batch converting jpeg to pdf

Discussion in 'iMac' started by jpblevins, Nov 3, 2013.

  1. jpblevins macrumors newbie

    Nov 3, 2013
    I have 2000 jpeg images, each with its' own title. I want to batch convert them to pdf format while keeping each individual title. Is this possible with my iMac? I know how to convert an individual document in "Print" or "Save As" but it will take far too long with this many documents. Automator turns all images into one pdf with one title. Any assistance would be appreciated!


    iMac 2008
    Snow Leopard OS
  2. bernuli macrumors 6502

    Oct 10, 2011
    You can with Adobe's Acrobat Pro software. At $381 it is probably more than you wanted to spend. But if working with PDFs, it might make sense to own. I myself got pretty far with the free tools that are available, but ended up buying Acrobat Pro for max compatibility and efficiency.


  3. w0lf macrumors 65816


    Feb 16, 2013
    Well it's probably not the fanciest thing ever but yeah I was able to write up a combination of a bash script and automator app that can process any number of pictures into individual pdfs.

    Basically all it is a automator app that follows this workflow

    1) Echo input
    2) Save input as a variable FullFilePath
    3) Get the file name without extension from that using basename
    4) Save that as a variable FileName
    5) Make new desktop folder for output
    6) Get the FullFilePath variable
    7) Convert that to a pdf
    8) Save it with the name Converted.pdf on the Desktop
    9) Rename that using the FileName variable to 'some file name'.pdf (obviously some file name is the name of the the original file minus the original extension and base path)
    10) Move the renamed file to the desktop output folder

    Next I made a shell script that takes a Folder as an argument and recursively runs the above application on every file in that folder and all it's sub folders.

    	for f in "$FILES"/*
    	  if [ -d "$f" ]; then 
    	  	dive "$f"
    	  	echo "Processing $f file..."
    		open -a ~/Desktop/ "$f"
    dive "$1"
    How to then run the process is something like this in terminal:

    /Users/w0lf/Desktop/ /Users/w0lf/Desktop/untitled\ folder 
    With output something like this:

    Processing /Users/w0lf/Desktop/untitled folder/Screen Shot 2013-11-03 at 1.36.08 PM.png file...
    Processing /Users/w0lf/Desktop/untitled folder/untitled folder/Screen Shot 2013-11-03 at 12.58.08 PM.png file...

    Doing this for 2,000 items might not work great. I'd start by testing with like, 10 then 100 then 1,000.

    You can also simply drag any number of images (has to be at the same time) onto the if you just want to merge them into one .pdf

    Attached is a zip archive of the:
    1) workflow
    2) built app
    3) shell script

    Attached Files:

  4. alksion macrumors 68000


    Sep 10, 2010
    Los Angeles County
    Acrobat has never worked for converting batch PDF's for me. Always hangs and then crashes.
  5. dr3w a macrumors newbie

    Oct 28, 2013
    Why not use preview? click in the thumbnail tray, choose Edit->Select All, then File->Print Selected Items. In the print dialog, choose the PDF button, then select the Save as PDF item. You'll be asked where to save the file, and you're done.

    Can't guarantee it won't crash with 2000 images tho.
  6. w0lf macrumors 65816


    Feb 16, 2013
    Because he doesn't want them to be merged into one mega pdf.

  7. jji7skyline macrumors 6502


    Aug 10, 2011
    GIMP has a batch image manipulation feature, but it doesn't seem to be able to convert to PDF. Weird because you can save to PDF normally.
  8. afteryouwho macrumors newbie

    Dec 31, 2007
    Here's how I convert a batch of jpg files to a pdf with preview.

    In Finder, select all the files you want to combine in a PDF.
    Right click on any one of them and choose Open. All the files should open as a PDF in Preview.
    In Edit, click on Select all to select all the files in the left-hand thumbnail window.
    In File, click on Print and then choose Save as PDF in the PDF dropdown window.
    In the pop-up, give your PDF a name and where to save it to (I save to desktop and then put it where I want it.)
    Click on the Save button and that's it.

    Works for me every time.
  9. Chippy99 macrumors 6502a

    Apr 28, 2012
    Just asking, but why would anyone want to convert a load of jpegs to pdf's? I can't imagine why anyone would want to do that?

Share This Page