« Perverse Progress | Main | Talking About Sun's Open Source Java »

Concatenating PDF

Today I needed to combine a PDF file for a coverpage (produced from Word) with another PDF representing the body of the document (produced from LaTeX) into a single document. Turns out OS X already has a script that does this hidden deep inside Automator. The path is very long, so I’ll break it up to lead you to the file:

cd /System/Library/Automator/Combine\ PDF\ Pages.action
cd Contents/Resources
ls -l join.py

If you look at the Python script, you’ll see some usage information at the top.

I created a link to the script in by bin directory to make using it more convenient, then just used the command:

~/bin/joinPDF.py -o 2006prop.pdf 2006cover.pdf 2006desc.pdf 

That’s it. The resulting PDF is perfect. I found this recipe at Benjamin Han’s site.

Posted by windley on November 21, 2006 2:07 PM

See related posts:

2 Comments

You might also want to try pdftk, a very handy freeware tool:

http://www.accesspdf.com/pdftk/

And for your convenience you might use
http://www.iconus.ch/fabien/pdflab/
or similar tools.

Leave a comment

I encourage you to leave a comment below. Your email address will not be displayed on Technometria, but allows me to communicate with you directly. Your email address won't be displayed, but will be used to compute a MicroID for your comment.