Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
it converts Open Office format to other office/html format using jodconverter
branch: master

This branch is 1 commit ahead, 1 commit behind amardaxini:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README.markdown
Rakefile
init.rb
install.rb
uninstall.rb

README.markdown

ConvertOffice

It is a ruby Wrapper of jodconverter Which is used to convert office format to another office format/html

http://paramitech.com/2010/08/convert-open-office-document-to-another-open-office-format/

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, released under the MIT license

Something went wrong with that request. Please try again.