Version 11 (modified by 9 years ago) (diff) | ,
---|
Contents
DocRenderPlugin -- preview for DOC/XLS files
Description
Mimeview plugin to render in preview mode doc/xls attachments.
This plugin uses headless OpenOffice/Libreoffice to generate html.
Bugs/Feature Requests
Existing bugs and feature requests for DocRenderPlugin are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from [download:docrenderplugin here].
Source
You can check out DocRenderPlugin from here using Subversion, or browse the source with Trac.
Example
Sample init-script (tested on Debian)
Put helper to /usr/local/bin
Execute init-script, install plugin and edit attachment
section in trac.ini
[attachment] ooo_socket = socket,host=localhost,port=8100
Plugin Update
I have updated the plugin to work with Trac 1.0.2 and LibreOffice4.4.
Now it also render ppt and pptx documents.
I installed LibreOffice_4.4.1_Linux_x86-64_rpm.tar.gz from libreoffice site. Notice it resides in /opt/libreoffice4.4.
Copy ooextract.py to /opt/libreoffice4.4/program
libreoffice4.4 comes with python3 as well pyuno.so compiled for python3. Since my OS python install is 2.6 I modified docrenderer.py to run ooextract.py using the libreoffice python executable.
Attached is docrenderplugin-1.0-14472.zip with the updated code under 1.0 sub-directory
Could someone please update the source tree?
Recent Changes