Sometimes we will need our application to do a conversion between file formats.
Out of these the most common is any format to PDF.
Have a look @ this
It is the JOD converter that can be used for this. It has a good number of input
and output file format options.
You can download and use it in your application.
Remember, there is a “sizeMax” field in the applicationContext.xml
which can be changed for large files.
Also the code is written to get the values like file extension, mime-types, etc.
from the configuration file (documentFormats.xml) using ApplicationContext.
You can always change the code not to use this and to specify the file types that you want
or to customazie it in anyway.
Another important thing is that it uses OpenOffice for handling the Office documents.
I know, no one will like it. I don’t like it too.
In this way you will have to have Openoffice.
You will need to start the service in the listening mode.
Thanx,
Sandeep.