Actually, there is one solution, “One sulution to rule them all” . That is to use OpenOffice as the background service to convert them all. You can implement this remote call by yourself, but someone already wrote a java library to provide a high level API for us to use called JODConverter.
http://code.google.com/p/jodconverter/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
On Mac, install OpenOffice is very easy by install a dmg file. But on linux server, it’s better to use libreoffice instead. Libreoffice is now actively updated by The Document Foundation.
Why LibreOffice over (Apache) OpenOffice because (1) It has a better open source license. (2) It has more community support. (3) It is more rapidly developing and releasing updates
Before installing LibreOffice you need to remove existing openoffice from your system using the following command
1 2 3 4 5 |
|
And it’s better to use singleton mode to use the officeManager.