Dear sir,
Why is java ? Why don't be .NET.
I think that .NET fx is support many 3 rd's librarys to develop the program same as this your requirement, such as : HTML Tidy , itext, ...
I think that I need about 6 days to done this req. If you believe me, please choose me.
Regards.