PDF.js implementation for mod_assign and beyond

PDF.js implementation for mod_assign and beyond

von Andrew Hancox -
Anzahl Antworten: 2

At UCL we've been working with pdf.js (Apache 2 license, maintained by Mozilla) to both display and provide annotation tools for mod_coursework. You can see our initial implementation here:

https://github.com/ucl-isd/moodle-mod_coursework/commit/3d85e6f29e46cfe5e5d135971b77603fc7e3deeb

And read about pdf.js here:

https://mozilla.github.io/pdf.js/

We would like to create an assign_feedback plugin that uses it.

Stretch goals would be:

  • Extend it to support stamps
  • Extend it to support a comments library
  • Create a migration path from Davo's excellent (but YUI dependent) feedback_editpdf
  • Create similar functionality within the quiz module
  • Persuade HQ this is a worthy inclusion in core
Als Antwort auf Andrew Hancox

Re: PDF.js implementation for mod_assign and beyond

von Guy Thomas -

Excellent suggestion. I also think pdfjs would be useful as a viewer for all files. Recently Canvas experienced a hack due to a dodgy course file. A viewer only mode for enhanced security would prevent users from having to download attachments 

Als Antwort auf Andrew Hancox

Re: PDF.js implementation for mod_assign and beyond

von Stephan Robotta -
There is something similar in https://github.com/rwthmoodle/moodle-mod_pdfannotator which we use. It needs some polishing though, the event handling inside PDFs i sometimes lacks.