# PDF.js viewer
[PDF.js](https://mozilla.github.io/pdf.js/) is a Portable Document Format (PDF) library that is built with HTML5.
This is a build version of the PDF.js, including the viewer.
## Installation
bower install pdf.js-viewer
## Usage
Include `viewer.html` using [SSI](http://httpd.apache.org/docs/2.4/howto/ssi.html) or your favorite templating system.
```html
PDF.js viewer
```
## Upgrading the source
Normally mozilla's PDF js viewer, will only run as standalone. We forked the project and patched it, so you can include it
within a page.
To update this version, get the patched pdf.js source code and build the project
git clone https://github.com/legalthings/pdf.js.git
cd pdf.js
npm install
gulp generic
cd ..
And update the files from source and patch them
cd pdf.js-viewer
npm install
./build.sh ../pdf.js/build/generic/