Git Product home page Git Product logo

fileformatconvertws's Introduction

** 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 **

File Format Converter

It is an API that accepts file in one format, and outputs the data in a different format.

Folder Contents

  • com/in/convertClasses/ - All of the converter code
  • com/in/webservices - All web services

Usage

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.

Where to Get Help

Email: [email protected]

Supported Formats

DOC to PDF Csv to XML

Format Wish List

PDF to DOC Text to PDF Pdf to audio

The Concept

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>
It is bean file that calls the class dynamically according to input and output format. NOTE: Plase make sure in bean id will be always in the form of

Some libraries used

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.

fileformatconvertws's People

Contributors

arg5739 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.