Etherpad Office Import & Export after Upgrade to V1

V1 does not natively support office import / exports yet due to a licensing issue but if you had it working before you can do a few steps that will get you started.  We use Open Office in a headless mode to accomplish this.

1.  Copy the cos.jar to infrastructure/lib (replacing etherpadbackup is the folder you backed your original etherpad installation to (etherpad <v1)

cp /usr/local/etherpadbackup/trunk/infrastructure/lib/cos.jar /usr/share/etherpad/infrastructure/lib/

2. Run soffice in headless mode

/usr/bin/soffice -headless -nofirststartwizard -accept=”socket,host=localhost,port=8100;urp;StarOffice.Service”


3. Uncomment the lines in execution.scala that are commented “REMOVED_COS_OF_COS”

4. Reset your exports

export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export SCALA_HOME="/usr/share/java"
export JAVA="/usr/bin/java"
export SCALA="/usr/bin/scala"
export PATH="/usr/bin:/usr/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/share/java/mysql-connector-java-5.1.10.jar"

4. Rebuild and Run.

cd /usr/share/etherpad/etherpad/
bin/rebuildjar.sh clearcache
/etc/init.d/etherpad stop
/etc/init.d/etherpad start
Note, in your etherpad.properties.local you should have the line:
etherpad.soffice = /usr/bin/soffice
It is important so don’t forget it.

2 thoughts on “Etherpad Office Import & Export after Upgrade to V1

  1. Thanks.
    Your advice about the exports worked nicely for me. VERY USEFUL !
    However, I keep having a problem with the export to word of odf. The accentuated caracters (in French text in my case) are all corrupted. Surprisingly, this does not show up in the pdf exports which are clean.
    Where should I look for in order to have this cleaned up ?

Leave a Reply

Your email address will not be published. Required fields are marked *