Batch Merge to PDF

Here’s the task at hand:

I have a number of folders on my hard drive, named 01, 02, 03, etc. Each folder contains a number of .tif files. I would like to merge all of the .tif files in a folder into one .pdf, and repeat for each folder. The resulting .pdf could be named anything, it doesn’t matter.

Acrobat X can do this with one folder just fine. Select “Create” and then “Combine Files Into a Single PDF” and it does it perfectly.

But what I’d like to do is run this all in a batch, so I don’t have to do each folder one by one. However, if I select multiple folders, it combines all files from all folders into one .pdf. This isn’t what I need – I need one .pdf per folder.

Any thoughts?

Need answer fast, as they say.

Can you make Acrobat X loop across multiple folders using Automator or Applescript? (Or on Windows, something like PowerShell or AutoIt?)

Probably, and there are all kinds of add-ins and utility programs out there, but I don’t have them now, and can’t download one (network admin won’t permit it, and I can’t get an exception right now).

So I’ve got about a hundred of these folders, and either I have to sit here all night and do them one by one, which will take hours, or figure out a way to batch this, set it up, and go home.

Forgive me because I haven’t used Acrobat in a while – my office uses a competitor named Nuance that is extremely similar. With Nuance (and, I thought, with Acrobat, but it has been a while), you can set up one batch, and it’ll begin processing that batch as a single “job”, but you’re still free to set up other jobs. So it can handle queuing while processing. Do you know offhand if Acrobat locks you out from creating another job once it’s already working on one?

I realize this isn’t the same thing as having Acrobat do a mass batch job, but if you can at least queue all the individual jobs up at once rather than having to wait for one to finish before queuing the next one, that still saves some time.

Can’t do it. At least not this kind of job. While it’s processing one bunch of files, you can’t do anything.

Are you on OS X or Windows? On the Mac, Automator and Applescript come built in. On Windows, PowerShell is built in… I think.

Edit: yes it is.

Windows PowerShell
Automator
AppleScript

Yes, it’s there. It would take me quite some time to figure out how to write a script that would get Acrobat to do what I want (if that’s even possible). That’s a bit beyond me tonight, I’m afraid, but thanks anyway.

This is trivial to do from the command line using ImageMagick. To combine all TIFF files in a directory into a PDF, just type something like


convert *.tiff output.pdf

You can use your OS’s shell to do this for several directories at a time. Here’s an example with bash which assumes that you’re in a directory which contains nothing but subdirectories full of TIFF files:


for d in *
do
  convert "$d"/*.tiff "$d".pdf
done

If you’re using Microsoft Windows then a batch file to do the same thing would be of similar complexity.

Hi,

my problem is exactly the same like Saintly Loser’s, but I’m running Win7 x64, not OS. I have absolutely no experience in using the windows command shell - and all I need is a batch equal to the one already posted here for several directories at OS. If there’s someone here who could easily do this for me within seconds, I would be much oblieged… I think this would help many other users as well…

thank you very much so far! :slight_smile:

Reported.