Microsoft Word File Import/Export (Book)
Maintained by
Eoin Campbell
Import the contents of a Microsoft Word file into a book, splitting it into chapters and (optionally) subchapters, based on the heading styles. The file can be saved from Microsoft Word, Google Docs or LibreOffice, as long as it has a '.docx' suffix. Also supports exporting books to Word format, for round-trip editing.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
I tried an exsiting Book as well as a new Book and no luck.
Am I missing something?
> Running under PHP 7.0
>
The exported Word file needs some post-processing if the book contains images. You need to download a Word template from http://www.moodle2word.net/ that contains a macro that processes the Word file, converting the images into embedded images in Word.
Unfortunately, this macro has recently begun to be considered by Microsoft Windows Defender to be a virus, so you may have difficulty downloading it. You would need to turn off Defender, download the template, run it on the Word file, and then turn Defender on again, in order to get the images.
Unless you have a lot of images, it's probably easier to re-insert the image manually.
Sorry I can't be of more assistance.
Congratulations for this plugin, it's exactly what I need !
I'm using Office 2013, french version.
I encouter some little problems maybe you can solve. In a first document :
- When a paragraph content a Word link (Référence/Renvoi), in moodle, the paragraph appear as an html link form the Word link to the end of the paragraph
- If a paragraps content a bloc of text (Insert/Forms/Text bloc), it means the header is not correctly interpreted (appear for example as index09_06_sub.htm)
- The "puces" (I dont't know the english term...) are not converted (ul/ol in HTML).
In an another Word doc, none of the headers are interpreted, but styles are Heading1, heading2
You can contact me (pascal.gagnebin@ceff.ch) if you want I send you the Word files.
Best regards,
Pascal
Please give correct attribution / credit for Lucimoo to Mikael Ylikoski - http://lucidor.org/lucimoo/ on your page https://github.com/ecampbell/moodle-booktool_wordimport
I think we would be using it a lot.
I installed the Microsoft Word file import plugin, but the system looks exactly the same as before installation.
I don't see an icon or a button in Moodle to import Word documents.
Where can I find info about this?
Do we need to restart the server or something?
I am a newbie in Moodle world, so please tell me step by step, what should I need to make it work.
Thanks,
Marco
You are right; the image was placed right before the first "Heading 1". I corrected this and now the images are transferred together with the page. As far as this issue is concerned, I can confirm that this is not a bug.
Thank you very much for your efforts.
Best regards.
Thanks for trying it out.
The most likely reason for this problem is that the image is placed before the first "Heading 1"
style in the document.
The converter only includes content after Heading 1 styles.
Since the heading title is not included as the page name, it is also likely
that there is no Heading 1 style in the document at all, which would also
prevent any content from being imported.
I saved the text as txt, then opened it in MS Word. I then formatted H1 and H2 as needed and saved as docx. I was then able to successfully import the file. With debugging on I still get some debug information about pass 1 and pass 2, but I also now get the Importing and Relinking message followed by a continue button. The book looks as it should.
I have not tried this with any pictures yet.