[[PageOutline(2-5,Contents,pullout)]] = 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 [report:9?COMPONENT=DocRenderPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=DocRenderPlugin&owner=bsavelev new ticket]. == Download == Download the zipped source from [download:docrenderplugin here]. == Source == You can check out DocRenderPlugin from [http://trac-hacks.org/svn/docrenderplugin here] using Subversion, or [source:docrenderplugin browse the source] with Trac. == Example == Sample [attachment:openoffice.sh init-script] (tested on Debian) Put [attachment:ooextract.py helper] to /usr/local/bin Execute init-script, install plugin and edit `attachment` section in trac.ini {{{ #!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 use 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 == [[ChangeLog(docrenderplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:bsavelev] [[BR]] '''Maintainer:''' [wiki:bsavelev] [[BR]] '''Contributors:'''