I do not have experience with this... but I suggest you check out <a href=www.imagemagick.org>imagemagick</a>. It is a command line image manipulation program, which means you can easily process all the files in one command.
I am not sure it can manipulate pdfs, but you could always convert them to postscript first, with pdf2ps.
magli
|