UploadPDF

Assignment types ::: assignment_uploadpdf
Maintained by DavoDavo Smith
Annotate student's work within your browser and return it as a PDF
Latest release:
67 sites
20 downloads
13 fans
Current versions available: 2

For Moodle 2.3 (and above) this plugin has been replaced by the following pair of plugins:

https://moodle.org/plugins/view.php?plugin=assignsubmission_pdf

https://moodle.org/plugins/view.php?plugin=assignfeedback_pdf

Newly updated to work with Moodle 2.0. Warning: there is currently no clean upgrade from Moodle 1.9 => Moodle 2.0 for this plugin, any assignments created under Moodle 1.9 will lose all coversheets and submitted files on upgrade (I will try to find a fix for this). All other features should work fully with Moodle 2.0.

Students submit their work as a PDF (which can be generated from any application by using a PDF printer, such as the free PDFCreator). An optional coversheet is automatically attached (filled in with details gathered from the student as they submit the work).

The pages of the assignment are then presented, as images, in the teacher's browser window, allowing them to add comments and line annotations to each page. Comments can be edited, moved and resized as much as you like. You can also choose from a range of tasteful background and line colours (or no background at all).

Once the teacher is satisfied with their comments and annotations, their response is saved as a PDF and automatically returned to the student (along with the usual comment, grade and outcomes which are found in all assignments).

Important: please make sure you read the instructions (in README.txt) carefully - you will need to install a copy of GhostScript to make this plugin work and (if you are using a Windows-based server) edit one file in this plugin to tell it where to find GhostScript.
Installation:

  • Linux server:
  1. Install ghostscript from your distribution repository
  2. Download the UploadPDF plugin from the link below and unzip to a suitable folder
  3. Upload the files to your server and place them in the folder [moodleroot]/mod/assignment/type/uploadpdf (make sure the files go directly into this folder and you do NOT end up with a folder 'type/uploadpdf/uploadpdf')
  4. Log into your Moodle site as administrator and click on 'Notifications'

Windows server:

  1. Download the ghostscript installer fromhttp://pages.cs.wisc.edu/~ghost/
  2. Install this on the server, but make sure the path does not include a space (e.g. install to 'c:\gs' NOT to 'c:\Program Files\gs') - you can also install on a local computer and then upload the 'gswin32c.exe' and 'gsdll32.dll' file from the 'bin' folder to your server
  3. (IIS only) Make sure that the permissions are set correctly on the ghostscript exe/dll to allow PHP to run them
  4. Download the UploadPDF plugin from the link below and unzip to a suitable folder
  5. Edit the file 'uploadpdf_config.php' to include the path to where you installed ghostscript (instructions are in this file)
  6. Upload the files to your server and place them in the folder [moodleroot]/mod/assignment/type/uploadpdf (make sure the files go directly into this folder and you do NOT end up with a folder 'type/uploadpdf/uploadpdf')
  7. Log into your Moodle site as administrator and click on 'Notifications'

Overview video:

 

Screenshots

Screenshot #0

Contributors

Davo
Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • I Teach With Moodle
    Wed, 28 Mar 2012, 7:40 PM
    a great plugin - if you are interested, you can check my review at http://www.iteachwithmoodle.com/2012/03/28/uploadpdf-mark-work-directly-within-moodle/
  • Roger Handyside
    Mon, 2 Apr 2012, 11:37 PM
    Not sure if this is the right place, but I have installed plugin, appears on drop down, but when chosen, screen goes blank. Is this because of incorrectly set path for GS? Siteground is my host and they say:
    Is Ghostscript available with Siteground?

    Yes, Ghostscript is available with every Siteground hosting account. Currently we offer version 8.53.

    The absolute path to its binary executable is:
    /usr/bin/ghostscript
    How and where do I place the path?
    Thanks
  • Davo
    Tue, 3 Apr 2012, 2:21 PM
    Roger, I suggest you enable debugging on your site (site admin > developer > debugging, show: all, display: yes. Then tell me what error message is displayed . If you are using Linux, then leave the config setting for ghostscript as 'gs'.
  • Roger Handyside
    Tue, 3 Apr 2012, 5:15 PM
    Davo, thanks for getting back to me - I ran the debug and got the following error (btw am using M2.2)
    Parse error: syntax error, unexpected $end, expecting ')' in /home/ntynesid/public_html/mod/assignment/type/uploadpdf/tcpdf/unicode_data.php on line 11797

    Hope this helps!
  • Davo
    Wed, 4 Apr 2012, 5:17 AM
    Roger, that is a very odd error, as it is inside the code of the library I use, rather than my code. Please could you try downloading the plugin again from github, then adding to your server again. If that doesn't help, could you drop an email to Moodle@davosmith.co.uk and I'll see if I can figure out what is going on.
  • Doug Stevens
    Fri, 27 Apr 2012, 2:08 AM
    Is there a way to provide annotation AND revert to draft - so that the student can submit an updated version?
  • Davo
    Mon, 30 Apr 2012, 4:29 AM
    @Doug - sorry for the slow reply. There are two possible solutions for resubmissions:
    1. get the students to download the annotated PDF, then revert to draft
    2. (the solution I used) create a second assignment called 'resubmit X here' (you can then use the 'show another assignment' drop-down to browse the comments you made on the first submission).

    If I had time (or funding!) I'd add a feature allowing multiple submissions to a single assignment, but that would take some quite careful thought about how to manage the grading and viewing of different versions.
  • Neil Gregory
    Wed, 30 May 2012, 8:14 PM
    3.(IIS only) Make sure that the permissions are set correctly on the ghostscript exe/dll to allow PHP to run them
    Could someone explain how to do this part.
  • Adam Wright
    Sat, 2 June 2012, 5:01 AM
    Hi Davo, recently installed the plugin for Moodle 2 as we are phasing out 1.9. A nice range of annotation tools, loving the ticks and crosses stamp. The only thing we are having an issue with is the submission counts. Our test students are submitting but the system says 'No attempts have been made'. As soon as we mark one student's work it then says 2(1) submissions. Is this something that could be quickly looked at in a future update, or should we try and reinstall the plugin? I remember seeing a DB error first time we set an assignment, then it 'vanished' and looked liked it worked.

    I read in another comment somebody asking about resubmissions. On 1.9 we used to ensure allow deleting was set to no, and then revert to draft. Students could then add a page or so of amendments and it attached to the back of the original marked submission. Sadly 2.x has no option to prevent deleting so students could now remove marked 1st versions.
  • Roger Handyside
    Sat, 2 June 2012, 7:28 PM
    Hi - I have just reinstalled the latest version from here - I am using M 2.2.1
    Still not working in IE - the tools page is on top and the pdf appears below but no tools work. Have just tried Firefox and I now get the tools on top of an image of pdf. Comments work fine, but lines, ticks etc do not save in response and in edit mode do not stay with the page, they carry on over to the next page. - Any ideas?
  • Davo
    Sun, 3 June 2012, 1:09 AM
    Adam - I am aware that the count appears to be doing something odd. When I next have some spare time to look at the uploadpdf. I am more likely to remember to do this, if an issue is added to http://tracker.moodle.org

    The easiest way to handle resubmissions, and the method I have always used, is to have separate assignments for submissions and resubmissions - with recent versions of Moodle this is as simple as hitting the 'duplicate activity' button, then renaming the activity (and changing the deadline date).

    Roger - I have tested repeatedly on a fresh Moodle install, the standard theme, with Firefox, Chrome and IE9. There are no know problems on such a system with the latest version of my plugin. Please could you use the built-in browser developer tools to see if there are any javascript errors and then add an issue to http://tracker.moodle.org with detailed instructions about how to reproduce the problem.
  • Roger Handyside
    Sun, 3 June 2012, 4:48 PM
    Hi Davo - Thanks for that. I redid the whole thing! Now seems to work on IE! Will be using to enable good feedback practice on research project on independent learning in sixth form. A really useful addition to Moddle tools.
  • Chris Fryer
    Tue, 17 July 2012, 9:49 PM
    I note that the assignment plugin architecture has changed in 2.3, and the "old" assignment subtypes (mod/assignment/type/*) will be deprecated. Do you plan to refactor this for the new mod_assign?
  • Davo
    Wed, 18 July 2012, 4:17 AM
    @Chris - a 2.3 version of this plugin is definitely on the cards (I submitted a couple of patches to the new mod_assign before 2.3 was released, in order to make sure my uploadpdf type could be made to work with it).

    I have made a start on it, but I have just not had many spare evenings in the last month to make any progress (and many of those have been spent on updates to my checklist, realtime quiz and other plugins, along with minor bug fixes to the 2.3 drag and drop upload). I hope to have a bit more time over the summer. If there was anyone willing to fund the update via Synergy Learning, then I could work on it during the daytime, if not, it will have to wait.
  • Steven Church
    Tue, 9 Oct 2012, 3:24 PM
    Hey Davo, Is there any update on when this will be fixed for 2.3? - We seem to have stumbled into an issue where it is working for 2.2 but 2.3 breaks it completley. IT will not install.

    Cheers
Please login to post comments