PDF.js Folder

Activities ::: mod_pdfjsfolder
Maintained by Jonas Nockert
PDF.js Folder is a plugin intended to make sure that added PDFs always open in the browser.

PDF.js Folder 0.13

Moodle 2.5, 2.6
Released: Friday, 15 November 2013, 12:33 AM

Pdfjsfolder

How PDFs are opened in browsers seem to depend on many things, like which browser the user is using, the configuration of PDF readers and which operating system is being used. To a smaller degree, it depends on the settings in Moodle.

In most cases, the handling of PDFs should be left under the control of the user but in some cases there are valid reasons to try to standardize the experience.

Pdfjsfolder is a Moodle 2.5+ plugin intended to make sure that PDFs always open in the browser (with the option of downloading), regardless of if the user is using a desktop or mobile device.

Pdfjsfolder is built on PDF.js:

  • PDF.js is Portable Document Format (PDF) viewer that is built with HTML5.
  • PDF.js is community-driven and supported by Mozilla Labs. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.
  • PDF.js will not work in all browsers, most notably IE8 and below.
  • PDF.js, at the moment, performs rather poorly on mobile devices with limited memory and processing power (which covers almost all devices out there, new and old). Some PDFs are fine but others are too big, to complex, contain too many images, etc. Your mileage may vary.

Pdfjsfolder works much like the regular folder resource in Moodle and handles images as well as PDFs (for practical reasons). Zip files can be uploaded and unpacked.

There are a few options:

  • Should PDFs open in the current tab/window or open in a new tab/window?
  • Should folder contents be shown inline on the course page or on a separate page?
  • Should subfolders be shown expanded or not?
  • Should an alternative direct link be displayed for each PDF so that users with devices not capable of displaying all PDFs through PDF.js have another option?

Version information

Version build number
2013102900
Version release name
0.13
Can be updated to
0.14 (2013120300)
Maturity
Beta
MD5 Sum
fa385410b87b09a7609dc8bc35cb9be6
Supported software
Moodle 2.5, Moodle 2.6

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
0.13

Default installation instructions for plugins of the type Activities

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "assignment") in the "mod" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation