OpenOffice Integration

From ResourceSpace Documentation Wiki
Jump to: navigation, search

Ubuntu

This is an experimental feature which seems simple to set up on Ubuntu. Please try it out if you have an Ubuntu setup, and send feedback to theorysavage at gmail.com .

sudo apt-get install unoconv 

in config.php

$unoconv_path=/usr/bin;

to start the listener, on the command line:

unoconv --listener &

It should start its own listener but I find it's necessary to do the above, usually.

The default file extensions that will be previewed with Open office are:

$unoconv_extensions=array("doc","docx","odt","odp","html","rtf","txt","ppt","pptx","sxw","sdw","html","psw","rtf","sdw","pdb","bib","txt","ltx","sdd","sda","odg","sdc");

An alternative method for previewing Office formats is to use QuickLook to get previews on the Mac, but using Unoconv enables page previewing and an automatic PDF alternative version of the file.

I do the following to start the unoconv listener on startup (which prevents me from having to worry about starting the listener on reboots)

Create a file /etc/init.d/local

#! /bin/sh
unoconv --listener &

Then:

sudo chmod +x /etc/init.d/local
update-rc.d local defaults 80