plugin:docimporter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:docimporter [2014-05-09 20:54] – double hyphen are replaced by dokuwiki 198.62.239.193 | plugin:docimporter [2023-10-29 13:16] (current) – Klap-in | ||
---|---|---|---|
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : import, word, doc, docx | + | tags : import, word, docx |
downloadurl: | downloadurl: | ||
Line 19: | Line 19: | ||
---- | ---- | ||
- | This plugin imports your Microsoft Word documents (.doc or .docx) into Dokuwiki | + | This plugin imports your Microsoft Word documents (.doc or .docx) into DokuWiki |
* Basic layout : italic, bold, underlined text. | * Basic layout : italic, bold, underlined text. | ||
* Bullet and numbered list with sublevels. | * Bullet and numbered list with sublevels. | ||
Line 31: | Line 31: | ||
**//Install this plugin at your own risk, there is absolutely no guarantee that it will work correctly and will not make gremlins eat you alive.//** | **//Install this plugin at your own risk, there is absolutely no guarantee that it will work correctly and will not make gremlins eat you alive.//** | ||
- | Please note that this plugin has been developped | + | Please note that this plugin has been developed |
- | :!: **External requirements: | + | :!: **External requirements: |
* php-pear | * php-pear | ||
* libreoffice-writer | * libreoffice-writer | ||
* libreoffice-wiki-publisher | * libreoffice-wiki-publisher | ||
- | Install | + | Search and install |
You will also need to create the file : | You will also need to create the file : | ||
Line 64: | Line 64: | ||
| | ||
- | And add the following lines between the "< | + | And add the following lines between the "< |
<? | <? | ||
Line 70: | Line 70: | ||
<? | <? | ||
- | And add the following lines just before the comment | + | And add the following lines just before the comment |
<? | <? | ||
Line 111: | Line 111: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
+ | >This plugin imports my Microsoft Word documents! Actually [[Windows Microsoft Word]]. It would make more sense to develop and value a plugin in his own environment, | ||
+ | |||
==== No Change to xmlrpc.php ==== | ==== No Change to xmlrpc.php ==== | ||
Line 142: | Line 145: | ||
== Response to Joe - no page created == | == Response to Joe - no page created == | ||
In my case i onliest need to create a link / | In my case i onliest need to create a link / | ||
+ | |||
+ | |||
+ | == Another response! == | ||
+ | In our case it was due to the server not being able to access the postback URL from the plugin itself. | ||
+ | |||
+ | '' | ||
+ | |||
+ | If your web server is set up to not be able to access internal PHP files via localhost, this might break. | ||
+ | |||
+ | '' | ||
+ | |||
+ | Or just letting PHP do the work for you: | ||
+ | |||
+ | '' | ||
+ | |||
+ | Try that, and see if that works. | ||
+ | |||
+ | == Similar trouble == | ||
+ | Similarly, the plugin fails to create a new page and I get the following error in my server' | ||
+ | < | ||
+ | |||
+ | Chris' | ||
+ | |||
+ | |||
+ | ==== No Images shown in Imported Page ==== | ||
+ | |||
+ | When importing .docx Word files I had a well formatted page added to the wiki, but with %%{{wiki: | ||
+ | |||
+ | Line 95 in / | ||
+ | < | ||
+ | preg_match_all("/< | ||
+ | </ | ||
+ | to: | ||
+ | < | ||
+ | preg_match_all("/< | ||
+ | </ | ||
+ | |||
+ | I have a further issue in that the HTML output of the LibreOffice conversion is putting the images inline in base64 data URIs instead of external jpg/png files and Dokuwiki doesn' | ||
+ | < | ||
+ | |||
+ | --- | ||
+ | |||
+ | Confirmed - Images do not import with this plugin. Have tried 4.2.7 (default for 14.04), as well as the latest beta - 4.4.x. None seem to parse image export correctly. This is a real shame :( | ||
+ | Have banged my head against this plugin for too long. | ||
+ | |||
+ | If anyone knows of any way to actually import a basic document with a few images properly, I would really love to know of a good way. It is rather tedious to have to manually save each image, and then upload. Oh well. At this point, I might as well just link to the original document. This is, sadly, the best option I can think of without spending the time to manually " | ||
+ | |||
+ | Also, the dev has stopped maintaining this plugin. Abandon all hope, ye who enter here. | ||
+ | -somedude - Dec.18.2014 | ||
+ | |||
+ | |||
+ | I have the same problem than you ... since October. We need a plugin like docimporter, | ||
+ | Fire24 - 19/01/2015 | ||
+ | |||
+ | |||
+ | --- | ||
+ | |||
+ | The plugin works very well. Thank you for it. Just few installation notes: | ||
+ | * Make sure that XML-RPC remote API is configured correctly | ||
+ | * Make sure that XML-RPC user have enough rights to create documents in the wiki | ||
+ | * Make sure that Libre(Open)Office is 4.1, or older. Since 4.2, images are embedded to the html | ||
+ | * May be needed to edit ImportUtils.php | ||
+ | < | ||
+ | diff ImportUtils.phpOLD ImportUtils.php | ||
+ | 113c113 | ||
+ | < | ||
+ | --- | ||
+ | > | ||
+ | </ | ||
+ | |||
+ | maaca - 16.4.2015 | ||
+ | |||
+ | ==== pgrep_match_all ==== | ||
+ | Does not work here :( \\ Error with pgrep_match_all line 298 in ImportUtils.php \\ | ||
+ | preg_match_all(): | ||
+ | No clue ... \\ | ||
+ | \\ | ||
+ | Bert- 11.01.2016 |
plugin/docimporter.1399661647.txt.gz · Last modified: 2014-05-09 20:54 by 198.62.239.193