1# odtplus2dw Plugin
3Create a dokuwiki page from a file.
5- More information about odtplus2dw at http://www.dokuwiki.org/plugin:odtplus2dw
6- More information about odt2dw at http://www.dokuwiki.org/plugin:odt2dw
7- More information about dokuwiki at http://www.dokuwiki.org
11odtplus2dw 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.
15From a Dokuwiki page, click on the "Import file" button in the Page Tools. Select a File and click upload.
19**External requirements:** This plugin requires the following additional components that must be installed separately:
21- php xsltProcessor class (ex : php-xml, php5-xsl)
22- php zipArchive class
24- soffice (ex: libreoffice-writer)
26If you run the Dokuwiki server on Debian, you can accomplish this requirements following this directions:
28- Install some packages needed:
30`sudo apt-get install wget default-jre php5-xsl libreoffice-writer`
32- If you wish, you can execute the script `installLatestPandoc.sh` (included with this plugin) 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).
34### soffice conversion (.doc support)
36PHP 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:
38`sudo echo "daemon ALL=(root)NOPASSWD:/usr/bin/soffice" >> /etc/sudoers`
40I'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.
42If PHP code is executed by any other user on your system, you only have to change it in the previous command.
44## Configuration and Settings
46They are almost self-explanatory.
48## Change Log
50### v0.11 beta
52- Now the names of uploaded files can contain spaces.
53- Added French translation (thank you jmgfr!).
55### v0.10 beta
57- Changed name to odtplus2dw.
58- Added doc/docx support.
59- Added spanish translation.
60- Removed some translations (I can't update them, so I had to remove).
62### v0.09 beta
64- Adjust method signatures to match parent.
65- Add import button.
67### v0.08 beta
69- Fixed : bug #9.
70- Fixed : bug #14.
72### v0.07 beta
74- Fixed : parserPostDisplay now works with choice edit or preview.
75- Fixed : better class existence control.
77### v0.06 beta
79- Fixed : some small fixes to the english messages.
80- Add : message translation in Dutch (By mprins).
81- Fixed : check for mime type was too specific : It could be set in config panel.
82- Fixed : submit button was not translated and stay in french : His value depend of the dokuwiki lang file now.
84### v0.05 beta
86- Fixed : display an error if the parserUploadDir directory doesn't exists. Now it will be create if needed.