I'm looking for a way programmatically to merge several individual files (mainly PDF) into a single individual file.

I have done some web searchs and have found several software utilities that perform this action but I want to create my own.

Any idea's on where to start?