Code Monkey home page Code Monkey logo

moodle-filter_viewerjs's Introduction

#filter_viewerjs

This is a Moodle filter that converts links to local PDFs, ODPs, ODTs, and ODSs into an embedded player powered by ViewerJS. It uses the model from moodle-filter_jwplayer of creating a Moodle core_media_player renderer and using that to change links into an embedded player.

This plugin has only been tested on Moodle 2.8.

Download here.

##Installation

Note that ViewerJS is licensed AGPLv3. To ease the licensing and distribution requirements of this filter, the ViewerJS library must be installed separately, instead of it being bundled with the filter.

  1. Place the files for this filter at /filter/viewerjs in your Moodle Installation
  2. Download ViewerJS and extract the viewerjs-*/ViewerJS/ to /filter/viewerjs/lib/viewerjs/ in your Moodle installation. If successful, /filter/viewerjs/lib/viewerjs should contain files such as index.html.
  3. Create a text file named thirdpartylibs.xml with the following content
<?xml version="1.0"?>
	<libraries>
		<library>
			<location>lib/viewerjs</location>
			<name>ViewerJS</name>
			<version>VERSION_NUMBER</version>
			<license>AGPL</license>
			<licenseversion>3.0</licenseversion>
		</library>
	</libraries>

replacing VERSION_NUMBER with the version of ViewerJS that was downloaded 4. Using a web browser, go to /admin to complete installation

##Usage

  1. Create a page activity in a course
  2. Add some text
  3. Create a link to a PDF
  4. When you save and view the page, you should see the PDF displayed in the embedded player

##Screenshots Screenshot of a link to a PDF being displayed using the ViewerJS player

moodle-filter_viewerjs's People

Contributors

ispedals avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.