I guess you wanna recreate a test environment. I used Jakarta cactus for the same in case you need help regarding the same PM me. You may also like going through the help of cactus which explains in greta detail about all this.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Adding the Parameter in HTTP Request Header