Microsoft Word File Import (Atto)

Atto ::: atto_wordimport
Maintained by Eoin Campbell
Import entire Microsoft Word 2010 (.docx) files, including tables, embedded images and Microsoft Equation Editor equations, cleanly. Also imports LibreOffice and Google Docs files saved to .docx format.
Latest release:
4749 sites
732 downloads
140 fans
Moodle 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11

This plugin allows users import the entire contents of a Word 2010 (or later) file as clean HTML, retaining formatting such as headings, lists, bold and italic. The heading styles in Word such as "Heading 1" are mapped to corresponding tags in HTML such as h3, h4 (the "Heading 1" style is mapped to h3, etc.). For best results, the imported Word files should be well-styled, i.e. use standard Word named styles (e.g. "Heading 1", "List Bullet") as much as possible.

It supports .docx files only, not the older .doc format. The following Word versions support this format: Word 2007, Word 2010 and Word 2013 (on Windows); Word 2011 and Word 2016 (on MacOS). Note that files in.docm format (i.e. including macros) are not supported.

LibreOffice 5.x can also save files in .docx format, and they will import too, but generally the quality is not as good as native Word files, even if the document uses styles well.

Note also that the PHP XSL extension must be enabled on your webserver, and the plugin requires Moodle 2.7 or higher.

After installation, the Atto editing toolbar should have a new Word icon added to the files group, similar to the screenshot below.

Atto toolbar files group with WordImport icon added

You can click on the link to open the file selection dialog, or alternatively, just drag a file over the text area and it will be imported and converted.

Sets

This plugin is part of set Microsoft Word file import/export.

Screenshots

Screenshot #0

Contributors

Eoin Campbell (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Mon, Feb 25, 2019, 7:04 AM
    Thank you so so so much. Thanks for your help! After following the 5 steps you gave, it came up perfect for the pages. But as you’ve rightly stated that moodle book resource is better for long documents ( Thank you for pointing out this to me), I tried the 5 steps for the book import, it didn’t come out well. Just like you stated, the headings and list bullets didn’t show up. I tried a workaround of copying and pasting to a fresh word document, edit the headings to use word headings, and also the body to use word body. With only these, the book came out perfectly well, and the RTL was readjusted automatically. With these, I don’t need to delete the “RTL” strings.

    I can’t thank you enough for sparing your time to help me make this work. Thank you Again!
  • Sat, Apr 20, 2019, 8:02 PM
    Have you changed the plug-in name from wordimport to atto_wordimport? I get "Invalid get_string() identifier: 'modulename' or component 'mod_wordimport'. Perhaps you are missing $string['modulename'] = ''; in mod/wordimport/lang/en/wordimport.php?" when I try to install (on Moodle 3.5). The file is perhaps renamed atto_wordimport.php?
  • Tue, Apr 23, 2019, 4:48 PM
    The plugin name has never changed and the pluginname value is present (cf. https://github.com/ecampbell/moodle-atto_wordimport/blob/master/lang/en/atto_wordimport.php#L25), so I don't think that's the issue. I suggest you uninstall and try again. It certainly installs properly on my Moodle 3.5 sites
  • Sun, May 12, 2019, 11:18 PM
    Hi Eoln, here is the full error output. The software involved are LAMP Debian 9, PHP 7.0, XSL (libxslt 1.1.29) active, Moodle 3.5.5.
    Plugin mod_wordimport does not declare valid $plugin->component in its version.php.
    line 315 of /lib/classes/plugin_manager.php: call to debugging()
    line 335 of /lib/classes/plugin_manager.php: call to core_plugin_manager->load_present_plugins()
    line 217 of /lib/classes/plugininfo/base.php: call to core_plugin_manager->get_present_plugins()
    line 143 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base->load_disk_version()
    line 97 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base::make_plugin_instance()
    line 395 of /lib/classes/plugin_manager.php: call to core\plugininfo\base::get_plugins()
    line 355 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_plugins_of_type()
    line 1118 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_plugins()
    line 1238 of /admin/renderer.php: call to core_plugin_manager->missing_dependencies()
    line 212 of /admin/renderer.php: call to core_admin_renderer->missing_dependencies()
    line 679 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()
    Invalid get_string() identifier: 'modulename' or component 'mod_wordimport'. Perhaps you are missing $string['modulename'] = ''; in mod/wordimport/lang/en/wordimport.php?
    line 349 of /lib/classes/string_manager_standard.php: call to debugging()
    line 7162 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    line 64 of /lib/classes/plugininfo/mod.php: call to get_string()
    line 142 of /lib/classes/plugininfo/base.php: call to core\plugininfo\mod->init_display_name()
    line 97 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base::make_plugin_instance()
    line 395 of /lib/classes/plugin_manager.php: call to core\plugininfo\base::get_plugins()
    line 355 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_plugins_of_type()
    line 1118 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_plugins()
    line 1238 of /admin/renderer.php: call to core_plugin_manager->missing_dependencies()
    line 212 of /admin/renderer.php: call to core_admin_renderer->missing_dependencies()
    line 679 of /admin/index.php: call to core_admin_renderer->upgrade_plugin_check_page()
    Skip to main content
  • Wed, Mar 25, 2020, 1:43 AM
    Hello, please, I need know what word add in to the desired position in the Atto toolbar editor. Regard
  • Wed, Mar 25, 2020, 7:55 AM
    I'm afraid I don't understand this question.
  • Thu, Jun 4, 2020, 9:10 PM
    Can i create a book with chapters and images by this plugin ?
  • Fri, Jun 5, 2020, 6:11 AM
  • Wed, Jul 1, 2020, 11:24 PM
    Great Application I Loved it
  • Thu, Jul 2, 2020, 2:26 PM
    receiving the message for some word files: error/Error reading file how to trace the issue
  • Tue, Jul 14, 2020, 2:37 AM
    Is this free? Is it secure? Does it let moodle slow?
  • Tue, Jul 14, 2020, 3:48 AM
    Yes, it is free, and secure. Using it won't really affect Moodle performance, unless you are importing or exporting very large numbers (1000+) of questions, and even then only for a few seconds.
  • Tue, Jul 14, 2020, 5:11 AM
    Thanks for the quick reply, @Eoin Campbell!
  • Sun, Aug 22, 2021, 5:11 PM
    how do i install this plugin? sorry very new to moodle
1 2 3 4 5
Please login to post comments