DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:file2dw

This is an old revision of the document!


file2dw Plugin

Compatible with DokuWiki

Greebo, 2018-04-22

plugin Create a dokuwiki page by importing a file

Last updated on
2018-11-26
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to odt2dw, odtplus2dw

Tagged with doc, docx, import, odt, pandoc, soffice

Installation

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

  • pandoc
  • soffice (ex: libreoffice-writer)

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

  • Install some packages needed:
sudo apt-get wget default-jre libreoffice-writer
  • If you wish, you can execute the script installLatestPandoc.sh (included with this plugin in `docker` folder) to install the latest version of pandoc. Or you can install pandoc any other way (check that version installed is not very outdated, or the conversion can fail).

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

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.

Usage

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

Configuration and Settings

They are almost self-explanatory.

Change Log

  • v0.1 beta
    • Initial version.
plugin/file2dw.1543237392.txt.gz · Last modified: 2018-11-26 14:03 by qky666

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki