====== odtplus2dw Plugin ====== ---- plugin ---- description: Create a dokuwiki page from a file author : Jose Torrecilla, contributor Georges Khaznadar email : qky669@gmail.com type : action lastupdate : 2022-06-05 compatible : Greebo, 2018-04-22 depends : conflicts : similar : odt2dw tags : import, odt, docx, pandoc, soffice downloadurl: https://github.com/qky666/dokuwiki-plugin-odtplus2dw/archive/master.zip bugtracker : https://github.com/qky666/dokuwiki-plugin-odtplus2dw/issues sourcerepo : https://github.com/qky666/dokuwiki-plugin-odtplus2dw donationurl: screenshot_img : ---- ===== Installation ===== :!: **External requirements:** This plugin requires the following additional components that must be installed separately: * php xsltProcessor class (ex : php-xml, php5-xsl) * php zipArchive class * 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 php5-xsl libreoffice-writer * 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). Install the plugin using the [[plugin:plugin|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.12 beta** * Fixed: https://github.com/qky666/dokuwiki-plugin-odtplus2dw/issues/8 * **v0.11 beta** * Now the names of uploaded files can contain spaces. * Added French translation (thank you jmgfr!). * **v0.10 beta** * Changed name to odtplus2dw. * Added doc/docx support. * Added spanish translation. * Removed some translations (I can't update them, so I had to remove). * **v0.09 beta** * Adjust method signatures to match parent. * Add import button. * **v0.08 beta** * Fixed : bug #9. * Fixed : bug #14. * **v0.07 beta** * Fixed : parserPostDisplay now works with choice edit or preview. * Fixed : better class existence control. * **v0.06 beta** * Fixed : some small fixes to the english messages. * Add : message translation in Dutch (By mprins). * Fixed : check for mime type was too specific : It could be set in config panel. * Fixed : submit button was not translated and stay in french : His value depend of the dokuwiki lang file now. * **v0.05 beta** * Fixed : display an error if the parserUploadDir directory doesn't exists. Now it will be create if needed.