JPedal provides a whole host of PDF manipulation tools to alter PDF files.
Please note, you will need
iText
installed on the classpath to use all these features.