This Repository contains the code for the unowebconv
plugin, an alternative to the unoconv moodle plugin, that uses a webservice for the document conversions.
To install this plugin in moodle there are two ways:
-
Install the plugin from zip (recommended) Important: only create a zip from the unowebconv folder (e.g.
unowebconv.zip
) -
Copy the folder
unowebconv
and its contents tofiles/converter/
within the moodle installation and run a database upgrade.
After the plugin was installed sucessfully, do not forget to provide a path pointing to the corresponding webservice, after that the plugin is enabled and ready to use.
Currently while the document conversion is ongoing Moodle will show a gray area with a "Generating the PDF..." label. Since this plugin does conversions using a webservice it might be a good idea to let the user know that the conversion process could take a few minutes.
To change this label, within your moodle installation you can change
// Default value for lang/en/assignfeedback_editpdf.php
$string['generatingpdf'] = 'Generating PDF ...';
// Change to new value
$string['generatingpdf'] = 'Generating PDF. This could take a few minutes';
The above example comes from an english moodle installation where the language strings are stored alongside the plugin in mod/assign/feedback/editpdf/lang/en/assignfeedback_editpdf.php
.
If you want to change this label for another language, you can edit the string template ($string['generatingpdf']
) in lang/<YOUR_LANGUAGE>/assignfeedback_editpdf.php
. The location of this folder depends on the way you installed the language pack.
If the language pack was installed using the GUI it will be stored in your moodledata
directory, e.g. moodledata/lang/de/
will contain the translations for german moodle.
In case the language packs were installed by downloading the corresponding pack as .zip
file, its unzipped contents are stored in moodle/lang/<YOUR_LANGUAGE>/
.
The current version of this plugin (v1.0.2) works with version 0.4.2
of the unoconv-webservice (more information on versions below).
All versions currently mentioned in this document specify versions of the plugin itself or versions of the team-parallax/unoconv-webservice (referred to as unoconv-webservice)
Plugin | Webservice |
---|---|
1.0.0 | 0.4.2 |
1.0.1 | 0.4.2 |
1.0.2 | 0.4.2 |
1.1.0 | 0.5.2 - 1.0.0 |
1.2.0 | 1.2.0_rc and newer |
In case the plugin is not working properly verify the following things:
- You correctly installed the plugin
- Review your webservice url
The Unowebconv
settings:
To set a (new) url for the unoconv-webservice
enter a valid url into the text field, then save it.
To test if everything works as expected click on 'Test unoconv webservice url'.
You will see:
if the url you entered points to an instance of the unoconv-webservice
.
In case of an error you will be displayed the following
The image below shows the settings of Moodles document converters admin settings, with correctly installed and configured Plugins.
If the column Supported document conversions is empty after the installation, verify that the provided webservice url is correct and the service is running.
Changes in different versions:
1.0.0: release candidate
1.0.1: updated labels for settings page, automatic disabling of unoconv
1.0.2: enable plugin after installation without checking webservice url
1.1.0: updates documentation for settings. Adds better feedback for webservice url setting.