Skip to content

amardaxini/convert_office

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConvertOffice

It is a ruby Wrapper of [jodconverter][2] Which is used to convert office format to another office format/html [2]: http://www.artofsolving.com/opensource/jodconverter

Install

./script/plugin install git://github.com/amardaxini/convert_office.git

Requirements

JDK 1.5.x or 1.6.x

OpenOffice 2,3 or greater

Start Office with headless mode.

soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard Configuration -------------

These are the default settings which can be overwritten in your enviroment configuration file. ConvertOffice::ConvertOfficeConfig.options = { :java_bin => "java", # java binary :nailgun =>false, # for nailgun support :soffice_port=>8100 # Open office port no } Example

If destination file is known.destination file consist valid file format

ConvertOffice::ConvertOfficeFormat.new.convert(src_file,dest_file)

If format is known then

ConvertOffice::ConvertOfficeFormat.new.convert(src_file,"",format)

Valid Format

To see valid format for conversion.

ConvertOffice::ConvertOfficeFormat.display_valid_format(input file name/format optional field)

Advance Configuraion

To speed up conversion process using nailgun server,do following steps

./script/plugin install git://github.com/amardaxini/nailgun.git

Start nailgun server.Before starting nailgun server make sure that your classpath environment variable set and point to jre/lib

rake nailgun script/nailgun start

you have to overwrite Configuration make nailgun option to true Now after making nailgun option true run

rake convert_office script/convet_office_nailgun

Copyright (c) 2010 [amardaxini][1], released under the MIT license [1]: http://railstech.com

About

it converts Open Office format to other office/html format using jodconverter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages