OfficeImporter Application

This application is bundled with:
  • XWiki Enteprise
  • XWiki Enterprise Manager
Application developed by the XWiki Development Team.
This application can be downloaded .

OfficeImporter Application

Imports office documents into wiki pages

Requirements

The Office Importer Application requires the following essential components:

  • XWiki Enterprise 1.8M1 or above
  • OpenOffice 2.1 or above (on the server)
Warning: Beginning with XWiki Enterprise 1.8.4, Office Importer requires OpenOffice 3.0 or a higher version. The following documentation is based on the XWiki Enterprise 1.8.4 version. If you are using an earlier version of XWiki Enterprise, some features might not be available to you

Installation / Configuration

The Office Importer application comes pre-bundled with XWiki Enterprise versions greater than 1.8M1, so there is no need for a manual installation. Office Importer makes use of a running OpenOffice server to convert office documents into HTML before they are finally transformed into XWiki 2.0 syntax. Thus, an OpenOffice server instance is required on the server computer which hosts your XWiki Enterprise installation. Beginning with XWiki Enterprise 1.8.4 you can configure an OpenOffice server in one of the two different ways described below.

Warning: If you've installed the Office Importer by installing a XAR it might happen that you've chosen options that reset Programming Rights (which are needed for this application). If this is the case you'll have to re-save the Office Importer Admin page. Go to Administer Wiki, click on the Open Office Server, and then change the link to : http://hostname:8080/xwiki/bin/edit/XWiki/OfficeImporterAdmin?editor=wiki. Click the Save and View button, and then try starting the server again.

Internally managed OpenOffice server process (default)

This is a very easy (and safe) option where your XWiki Enterprise application takes care of managing the OpenOffice server process for you. To configure the OpenOffice server management scheme, you can use the WEB-INF/xwiki.properties configuration file:

#----------------------------------------------------------------------------------
# Settings for the OpenOffice server instance consumed by the OfficeImporter plugin
#----------------------------------------------------------------------------------

#-# Type of the openoffice server instance used by officeimporter plugin. #-# 0 - Internally managed server instance. #-# 1 - Externally managed (local) server instance. # openoffice.serverType=0

#-# Port number used for connecting to the openoffice server instance. # openoffice.serverPort=8100

#-# If the openoffice server should be started / connected upon XE start. # openoffice.autoStart=false

#-# Path to openoffice installation (serverType:0 only). # openoffice.homePath=/opt/openoffice.org3/

#-# Path to openoffice execution profile (serverType:0 only). # openoffice.profilePath=/home/user/.openoffice.org/3

#-# Maximum number of simultaneous conversion tasks to be handled by a single openoffice process (serverType:0 only). # openoffice.maxTasksPerProcess=50

#-# Timeout for conversion tasks (in miliseconds) (serverType:0 only). # openoffice.taskExecutionTimeout=30000

Warning: Default values for homePath and profilePath configuration options will be calculated based on your operating environment. Even though this is the case, this calculation might not yield accurate results for some systems. So it's a good idea to configure these values manually by editing the xwiki.properties file.

If you leave your XWiki Enterprise application to manage the OpenOffice server process (which is the default behaviour), your Office Importer admin UI will look something like below:

admin1.png

Externally managed (local) OpenOffice server process

This option allows you (the system admin) to control the OpenOffice server process as desired. This is very useful if you wish to customize OpenOffice server start-up parameters. You can configure this behaviour within the xwiki.properties file as shown below:

#----------------------------------------------------------------------------------
# Settings for the OpenOffice server instance consumed by the OfficeImporter plugin
#----------------------------------------------------------------------------------

#-# Type of the openoffice server instance used by officeimporter plugin. #-# 0 - Internally managed server instance. #-# 1 - Externally managed (local) server instance. openoffice.serverType=1

#-# Port number used for connecting to the openoffice server instance. # openoffice.serverPort=8100

#-# If the openoffice server should be started / connected upon XE start. # openoffice.autoStart=false

Warning: For the profilePath configuration option, you need to have an OpenOffice profile directory created somewhere on the system. This can be a problem in server environments where launching OpenOffice is not an option. In such situations you can create an OpenOffice profile on a local computer and upload it to the server running XE.

Once XWiki Enterprise is configured in this manner, an OpenOffice server must be manually started as a separate process. You can issue the following command to accomplish this:

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

Don't forget to replace <soffice> with the path to your OpenOffice executable. More information regarding OpenOffice server deployment is provided here. Also note that the Office Importer admin UI will change reflecting the new configuration as shown below:

admin2.png Linux users may refer to additional installation notes here.

Auto start / Auto connect (feature)

This feature was introduced beginning with the XWiki Enterprise 1.8.4 version. With this option enabled, you don't need to worry about starting / connecting the OpenOffice server from the Office Importer admin UI every time you restart XE. This option can be configured from xwiki.properties file as shown below:

#-# If the openoffice server should be started / connected upon XE start.
openoffice.autoStart=true

Using Office Importer Application

Once XWiki Enterprise is configured correctly (and OpenOffice server started), users will be able to access the Office Importer Application via the Actions menu:

ActionsMenuColibri.png

ActionsMenu.png

Finally, Office Importer provides a self-explaining UI which makes it easy for you to import office documents:

OfficeImporter.png

Tags:
Created by Asiri Rathnayake on 2009/01/20 07:10
Last modified by Thomas Steinbach on 2010/08/27 20:06

This wiki is licensed under a Creative Commons license
2.3.28624