you can use third party java libray PDF Clown. According to their site it has the following features
- PDF generator: PDF Clown can create new PDF files
- PDF reader: PDF Clown can access existing PDF files
- PDF editor: PDF Clown can manipulate existing PDF files