varijkapil13 / pdfjs-mlal

Bower build for mozilla/pdf.js. version 1.8.188

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A bower build for mozilla/pdf.js

(Inspired from joseym's build for version 1.0.233 link)

Usage

bower install pdfjs-mlal --save

Link the necessary javascript files into your page.

<script src="/bower_components/pdfjs-mlal/dist/compatibility.js"></script>
<script src="/bower_components/pdfjs-mlal/dist/pdf.js"></script>

Enjoy


Updating or building manually

Currently the build is for pdf.js v1.8.188. You can build yourself by doing the following

Prepping (getting pdf.js)
  • git clone https://github.com/joseym/pdfjs-bower.git
  • git submodule init
  • git submodule update -- used to get the current version of pdf.js
Building

In your terminal please navigate to where the project is cloned

  • cd pdfjs-mlal
  • npm install -d
  • grunt

You should now see 3 files within the dist directory

  • pdf.js
  • pdf.woker.js
  • compatibility.js

About

Bower build for mozilla/pdf.js. version 1.8.188

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 100.0%