** Currently API take convert the doc to pdf and Csv to xml. But it is easy to add new formats with minimal changes to the code **
It is an API that accepts file in one format, and outputs the data in a different format.
com/in/convertClasses/
- All of the converter codecom/in/webservices
- All web services
Run on Tomcat server. It will run index.jsp You can select the input and output file format and upload the file. It will download the converted file.
Email: [email protected]
DOC to PDF Csv to XML
PDF to DOC Text to PDF Pdf to audio
This is basically an API where you can hook up the converter of your choice and make it available for others with minimum code changes. For adding new converter add class in appropriate directory and update two xml files. Namely List.xml and application-context.xml List.xml
<from id="doc">
<to>pdf</to>
</from>
<!-- <from id="pdf">
<to>pdf</to>
<to>doc</to>
<to>docx</to>
<to>docasd</to>
</from> -->
<from id="csv">
<to>xml</to>
</from>
Application-context xml
<context:annotation-config />
<!-- <bean id="applicationContextImpl" class="com.main.imp.ApplicationContextImpl"></bean> -->
<bean id="doctopdf" class="com.in.convertClasses.DocToPdf"></bean>
<bean id="csvtoxml" class="com.in.convertClasses.CsvToXml"></bean>
Name | Artifact id | version | Description |
---|---|---|---|
org.springframework | pring-context, spring-web and spring-beans | 3.1.0 | Spring |
org.apache.cxf | cxf-rt-frontend-jaxrs | 2.7.0 | CXF |
org.docx4j | docx4j | 3.1.0 | for converting DOC to PDF |
com.google.code.gson | gson | 1.7.0 | Google json library |
net.sf.opencsv | opencsv | 1.8 | Reading CSV |
com.thoughtworks.xstream | xstream | 1.4.7 | For crearting and reading xml |
For more detail please check pom.xml file having maven decencies.