Google is your best friend. PDFTK is a command line thing, if you are comfortable with that, it is very powerful.