qky666 / dokuwiki-plugin-odtplus2dw

Import different files (odt, doc, docx...) in a dokuwiki page
3 stars 3 forks source link

odtplus2dw Plugin

Create a dokuwiki page from a file.

Description

odtplus2dw is a plugin for dokuwiki (forked from odt2dw to add doc/docx support). This plugin lets you import a document into Dokuwiki. It supports (at least) .odt, .doc, .docx formats. It should also work with any other document format that pandoc supports, but it has not been tested yet.

Usage

From a Dokuwiki page, click on the "Import file" button in the Page Tools. Select a File and click upload.

Installation

External requirements: This plugin requires the following additional components that must be installed separately:

If you run the Dokuwiki server on Debian, you can accomplish this requirements following this directions:

sudo apt-get install wget default-jre php5-xsl libreoffice-writer

soffice conversion (.doc support)

PHP code (at least in my system) is executed by the user daemon. I had problems running a Java application with this user (it seems soffice is a Java application) so I decided to run the soffice conversion using sudo. To make it work, I had to add a line to the file /etc/sudoers. You can do the same executing:

sudo echo "daemon ALL=(root)NOPASSWD:/usr/bin/soffice" >> /etc/sudoers

I'm not a security expert, but I think that this should not be a problem for anybody. If you do not use the soffice conversion (.doc support), you don't need to do this.

If PHP code is executed by any other user on your system, you only have to change it in the previous command.

Configuration and Settings

They are almost self-explanatory.

Change Log

v0.12 beta

v0.11 beta

v0.10 beta

v0.09 beta

v0.08 beta

v0.07 beta

v0.06 beta

v0.05 beta