I don't know for .doc and other files, but if you have an XML one you could use FOP, it's simple to use and extremely low budget :)