documents4j is a library for converting documents into different formats using a pure Java API. Under the hood, it runs third-party applications to which it delegates the conversion. Currently, it ships with adapters for MS Word and MS Excel. The conversion can be executed locally or remotely via a REST service.