Changes between Version 5 and Version 6 of DocRenderPlugin


Ignore:
Timestamp:
Sep 25, 2012 12:23:20 PM (22 months ago)
Author:
bsavelev
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DocRenderPlugin

    v5 v6  
    11[[PageOutline(2-5,Contents,pullout)]] 
    22 
    3 = DocRenderPlugin -- preview for DOC files = 
     3= DocRenderPlugin -- preview for DOC/XLS files = 
    44 
    55== Description == 
    66 
    7 Mimeview plugin to render in preview mode doc attachments. 
     7Mimeview plugin to render in preview mode doc/xls attachments. 
    88 
    9 This plugin is only for unix-like systems, because it uses [http://wvware.sourceforge.net/ /usr/bin/wvWare] to generate html from doc. 
    10  
     9This plugin uses headless OpenOffice/Libreoffice to generate html. 
    1110 
    1211== Bugs/Feature Requests ==  
     
    2827== Example == 
    2928 
    30 Just install and enable -- DOC attachment become HTML with [http://wvware.sourceforge.net/ wvWare] 
     29Sample init-script (tested on Debian) 
     30 
     31{{{ 
     32#!/bin/bash 
     33# openoffice.org  headless server script 
     34# 
     35### BEGIN INIT INFO 
     36# Provides:          openoffice 
     37# Required-Start:    $all 
     38# Required-Stop:     $all 
     39# Default-Start:     2 3 4 5 
     40# Default-Stop:      0 1 6 
     41# Short-Description: openoffice headless 
     42# Description:       openoffice headless 
     43### END INIT INFO 
     44#  
     45# Author: Vic Vijayakumar 
     46# Modified by Federico Ch. Tomasczik 
     47# 
     48SOFFICE_PATH="/usr/lib/libreoffice/program/soffice.bin" 
     49PIDFILE=/var/run/openoffice-server.pid 
     50 
     51case "$1" in 
     52    start) 
     53    if [ -f $PIDFILE ]; then 
     54      echo "OpenOffice headless server has already started." 
     55      sleep 5 
     56      exit 
     57    fi 
     58      echo "Starting OpenOffice headless server" 
     59      $SOFFICE_PATH --headless --nologo --nofirststartwizard --nodefault --accept="socket,host=localhost,port=8100;urp;StarOffice.ComponentContext" & > /dev/null 2>&1 
     60      echo $! > $PIDFILE 
     61    ;; 
     62    stop) 
     63    if [ -f $PIDFILE ]; then 
     64      echo "Stopping OpenOffice headless server." 
     65      kill -9 `head $PIDFILE` 
     66      rm -f $PIDFILE 
     67      exit 
     68    fi 
     69      echo "Openoffice headless server is not running." 
     70      exit 
     71    ;; 
     72    *) 
     73    echo "Usage: $0 {start|stop}" 
     74    exit 1 
     75esac 
     76exit 0 
     77}}} 
     78 
     79Execute init-script, install plugin and edit `attachment` section in trac.ini 
     80{{{ 
     81[attachment] 
     82ooo_socket = socket,host=localhost,port=8100 
     83}}} 
    3184 
    3285== Recent Changes ==