In fact, I have recently used a very useful PDF Converter, but I don’t know if it uses Java as you said, because I don’t know much about it. If it can help you, that would be the best.